Expand my Community achievements bar.

Required fields established by drop down list

Avatar

Former Community Member

Is it possible in Adobe to have the required fields set by what is chosen from a drop down list?  For example, if I choose option 1, 5 fields would be required.  If I choose option 2, 10 fields would be required.

3 Replies

Avatar

Level 10

It is possible but you have to change manually the mandatory property for each fields when you change your option in the dropdownlist

When you choose an option in your dropdownlist, do you hide the fields which are not mandatory anymore, or they stay visible?

Avatar

Level 10

You can change the mandatory property with the following:

this.mandatory = "disabled"; //Field is optional

this.mandatory = "error"; //Field is mandatory