Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Check the Javascript console for errors (ctrl-j).
Copy link to clipboard
Copied
Where did you place the code, exactly?
Copy link to clipboard
Copied
I placed in the calculation.
I still dont think this is the coding that I need to accomplish my objective
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
They are Radio checkboxes and it is Married.
Copy link to clipboard
Copied
Use the script at validation of the dropdown.