You are viewing limited content. For full access, please sign in.

Question

Question

dynamically change unhidden fields to have required attrib without use of separate checkbox

asked on December 4, 2014

I have read about the possibility to change the required attrib of fields using a check box and have not been too successful with it probably due to my limited understanding of jscript (or the fact we use radio buttons to limit the number of selections more than checkboxes).  But my question is:  Is it possible to use a CSS class to determine that a field with said class is required if unhidden but not required if hidden without the use of a checkbox or radio button?  If so can someone help me with the code?

0 0

Replies

replied on December 4, 2014

should be able to use the "toggle" javascript command on the Required attribute, but question is how to initiate that. I would recommend making the action event handler perform the call to a function that retrieves the value of a field and determines if the status of required should change. Specifically, set it to test to similar information that your field rule is doing. Or, make javascript handle the hiding and unhiding of the field as well

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.