Hide Document types fields

lawrence whittemore asked on February 19, 2015 15:27

I have a drop down field on a document type that uses a query for the options. Is there a way to hide the field if the query has no results?

Recent Answers


Brenden Kehren answered on February 19, 2015 18:16

Not sure you can use a macro for that unless you're using a macro to get the data. For instance if you create a macro that returns an IEnumerable list you could then check to see if that count is > 0 in your visibility property and set it. So maybe a macro is the way to go. Otherwise, a javascript option could be put in place to see if the < select > object has any < options >.

1 votesVote for this answer Mark as a Correct answer

lawrence whittemore answered on February 19, 2015 18:43

Javascript is a good idea thanks! I ended creating a role that hides the field if the user doesn't have the role.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.