Conditional fields
Is it possible to make a field required depending on how a previous radio button or if a check box was clicked?
Thanks,
Kim
Is it possible to make a field required depending on how a previous radio button or if a check box was clicked?
Thanks,
Kim
Hi Kim,
You can apply the following script on the "Mouse Up" Action of the radio buttons.
Suppose you have 2 radio buttons A and B and you want to make the Text field (Text2) required when A is selected, you can add "Run a JavaScript" action on the
Mouse Up trigger of Button A:
if(event.target.value == "A") {
this.getField("Text2").required = true;
}
Mouse Up trigger of Button B:
if(event.target.value == "B") {
this.getField("Text2").required = false;
}
Please check this form for more.
Regards,
BR
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.