Reputation: 8086
In a form I have 4 radio buttons, under the label Q3
. Also i have a text field labeled lictype
Each radio button has its own respective Button Radio Choice Value
Pre
Pro
Ult
Uns
When a radio button is checked. I want the value of that button to be displayed in the lictype
text field.
Here is the JS I tried in a calculation.
var q3 = this.getField("value")
if (q3.value == "Pre”){
{
lictype.value = “Pre";
}
elseif (q3.value == "Pro”)
{
lictype.value = “Pro";
}
elseif (q3.value == "Ult”)
{
lictype.value = “Ult";
}
else (q3.value == "Uns”)
{
lictype.value = “Uns";
}
Upvotes: 0
Views: 1559
Reputation: 8086
If anyone is interested: I was able to accomplish this by using JS
to do a SHOW/HIDE on elements in the ACROBAT properties menu.
SHOW
and then HIDE
the appropriate text field.In the the text field: Stack all of them in the desired location and set each default value
in the properties panel to their respective value names.
Problem solved!
Upvotes: 1