Copy link to clipboard
Copied
I have a form where a user needs to select reinvest or cash as a distribution option. The reinvest box is a check box and if they choose cash it's a radio button with 4 cash types. If the user initially selects a cash option, then changes their mind to reinvest, how can they unselect one of the 4 cash options that they marked? I really don't want to make the reinvest option part of the radio group, because it's in a different section of the form... Is there a way to uncheck the radio button like you would uncheck a check box?
Copy link to clipboard
Copied
Use this as Checkbox mouseUp event:
if(event.target.value != "Off"){
this.getField("radio button name goes here").value = "Off";}
Copy link to clipboard
Copied
You could add code to checkbox when it's checked it will reset radio buttons.
Copy link to clipboard
Copied
I don't know how to do that.
Copy link to clipboard
Copied
Use check boxes for this.
Copy link to clipboard
Copied
I used Radio buttons to prevent the user from selecting more than 1 cash option
Copy link to clipboard
Copied
Then use a radio button group.
Copy link to clipboard
Copied
I did use radio buttons, but if they select an option and then change their mind they can't uncheck the button
Copy link to clipboard
Copied
They can select a other option.
Copy link to clipboard
Copied
Correct, that's how a radio-button group works. If you don't want that you can use check-boxes, as mentioned. Give them the same name but unique export values to create a mutually-exclusive group, which can still be un-checked, if desired.
Copy link to clipboard
Copied
I had this same issue recently and found a solution!
Go to Prepare forms and in the sidebar that pops up under the alignment tools click "more" with the tool symbol then "clear form" and this should reset all of your form fields
Copy link to clipboard
Copied
Use this as Checkbox mouseUp event:
if(event.target.value != "Off"){
this.getField("radio button name goes here").value = "Off";}

