Hi - I have a form (v10.2) where the "Required" property of several fields changes based on the value of a drop-down field. I have the javascript working fine to add/remove the "Required" status on the input of the fields, as well as the asterisk in the label <span> element of the fields. The problem comes in forcing the form to evaluate whether or not a field should be required, and clearing the "red" input box and "Value is required" message.
Specifically, let's say that field "A" is required. If it has no value in the input box, Forms turns the box red and displays "Value is required" below the box, once I blur out of the field input. Now, if an event is triggered that removes the required condition on field "A", the asterisk goes away and I *could* Submit the form; however, the red box and "Value is required" stays until Submit is clicked - can be confusing for the user, and I would like to tidy it up.
I have tried adding "$('.fieldA input').change();" and "$('.fieldA input').trigger('change');" statements, but no luck. Any suggestions?
Thanks, .... Steven.