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

DropDown Selection to check boxes

Participant ,
Jun 20, 2023 Jun 20, 2023

I am having an issue trying to figure this out.  I have one dropdown with the following choices, married, single, divorced, widow, and widowed. Out of the choices, there are three radio check boxes that are married, single, and divorced. I would like the drop-down selection to check off the appropriate checkboxes. 

Married for married, Divorced for divorced, but for single, widowed, and widow. I would like those three to check off the single checkbox. Is this possible?

 

And is it possible to have the checkboxes feed the drop-down. Something like backward compatibility. Only showing married, single, or divorced?

 

I thought Id give it a try with what I looked up, but this is what I got, and I don't think I did it write or put it in the right area to see if it works. This also may not even be what I need to accomplish what I am trying to do.

 

this.getField("married").checkThisBox(0,event.value == "Married" ? true : false);

this.getField("single").checkThisBox(0,event.value == "Single" ? true : false);

this.getField("divorced").checkThisBox(0,event.value == "Divorced" ? true : false);

 

 

 

My dropdown box name is Waiver Dropdown

and my radio buttons  under QAB Martial

                                                        Married

                                                         Single

                                                         Divorced.

 

 

TOPICS
JavaScript , PDF , PDF forms
884
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 ,
Jun 20, 2023 Jun 20, 2023

Check the Javascript console for errors (ctrl-j).

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 ,
Jun 20, 2023 Jun 20, 2023

Where did you place the code, exactly?

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
Participant ,
Jun 22, 2023 Jun 22, 2023

I placed in the calculation. 

 

I still dont think this is the coding that I need to accomplish my objective

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 ,
Jun 22, 2023 Jun 22, 2023

You need to be more precise when describing your problem,
you said 'radio check boxes' then you said 'checkboxes' then at the end you said 'Radio buttons'.
So which one is it?
Also you reffer to choices and field names as 'married' and 'Married', it is case sensitive so
make sure you use correct one.

 

Can you explain what exactly you want to happen with this:

And is it possible to have the checkboxes feed the drop-down. Something like backward compatibility. Only showing married, single, or divorced?

 

If you can, share your file.

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
Participant ,
Jun 24, 2023 Jun 24, 2023
LATEST

They are Radio checkboxes and it is Married. 

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 ,
Jun 22, 2023 Jun 22, 2023

Use the script at validation of the dropdown.

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