Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Is there a way to unselect a radio button once you've marked it?

New Here ,
Oct 13, 2020 Oct 13, 2020

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?

TOPICS
PDF forms
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Use this as Checkbox mouseUp event:

if(event.target.value != "Off"){
this.getField("radio button name goes here").value = "Off";}

 

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 13, 2020 Oct 13, 2020

You could add code to checkbox when it's checked it will reset radio buttons. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

I don't know how to do that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Use check boxes for this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

I used Radio buttons to prevent the user from selecting more than 1 cash option

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Then use a radio button group.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

I did use radio buttons, but if they select an option and then change their mind they can't uncheck the button

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

They can select a other option.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 13, 2020 Oct 13, 2020

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Use this as Checkbox mouseUp event:

if(event.target.value != "Off"){
this.getField("radio button name goes here").value = "Off";}

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines