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

Radio button validation

vpd85
Registered: Mar 19 2009
Posts: 39

I have 2 groups of radio button and I need a validation script.
There are two questions with the answers yes and no.
The combination Question 1 = yes and Question 2 = no, is not allowed!
Here is an example: http://justitiarul.ro//images/stories/example.pdf

Thanks a lot!

My Product Information:
LiveCycle Designer, Windows
madhu_livecycle
Registered: Jun 23 2009
Posts: 13
Hi vpd85,

as you said u have two radiobutton groups
for example R1 and R2
first select R1 and go to Object Pallete then binding tab.
as u said R1 contains two radio buttons yes and no check for their values mentioned in binding tab
if not mentioned first check the checkbox "specify item values" and give values to radio buttons as
1 for yes and 2 for no
repeat the steps for R2.

then to check the condition, place the below script for button in "Click" Event and Language as "Javascript"

if ( R1.rawValue == 1 && R2.rawValue == 2 )
{
xfa.host.messageBox("Not allowed");
}


Thanks,
Madhu.