Change ‘field required’ property on the fly?
-
In my application I have an optional checkbox that, when checked, causes a text field to become visible (using jQuery). The text field ought then to be required, because it asks for information that’s needed if the checkbox is checked. However, I can’t specify it as required in the field settings because it will then cause an error on submission when the checkbox is unchecked. The text field needs to be changed to being required on the fly, if the checkbox is checked when the form is submitted.
Is this possible? If so, how can it be done? Thanks for your help.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Change ‘field required’ property on the fly?’ is closed to new replies.