These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Remove "Highlight" for Radio Buttons once checked.

furball
Registered: Jul 11 2011
Posts: 3

I have a pdf form with a pair of radio buttons yes/no. The radio buttons were set as required with “highlight” turned on. The problem I have right now is when one button is checked the other remains highlighted. So my question is how to remove the highlight once the selection is made in the button group. Below are the script codes I have but are not working.
form1.Page1.YesNoCitizen.Yes::exit - (JavaScript, client)
 
if (this.isNull == false)
{
this.mandatory = "disabled";
No.mandatory = "disabled";
}
 
form1.Page1.YesNoCitizen.No::exit - (JavaScript, client)
 
if (this.isNull == false)
{
this.mandatory = "disabled";
Yes.mandatory = "disabled";
}
 
Thanks in advance,
D
 

My Product Information:
LiveCycle Designer, Windows
SLDC
Registered: Oct 25 2010
Posts: 70
Just a guess: this may require the form to be saved as a Dynamic XML form rather than as a Static PDF form.
furball
Registered: Jul 11 2011
Posts: 3
still the same.
SLDC
Registered: Oct 25 2010
Posts: 70
Did a bit of testing. Couldn't get anything to work using the Exit event.
this.mandatory = "disabled";
in the Change event works on text fields, but not radio buttons or drop-down lists.

It's possible that Designer simply can't/won't do what you want here.

furball
Registered: Jul 11 2011
Posts: 3
The Exit event works on my text fields and drop-down list, but not the radio button. I think you're right may be that Designer dont support this feature.