I've looked over the forums but can't seem to find an answer that completely helps me with this. I'm sort of new to creating forms with Acrobat. I am using Acrobat X Pro.
I have a form field that needs to populate a number based on one of three other form fields. I want to select the one of three fields with a radio button. How do I do this?
You can set the text field's value with the value from the exclusionary radio button group. Then test for a value of 'Off', indicating none of the radio buttons has been selected, and then change the field value to a null string.
// get radio button value;
event.value = this.getField('Radio Button1').value;
// null value if the value is 'Off';
if(event.value == "Off") event.value = "";
Adobe Acrobat JavaScript documentation JavaScript for Acrobat
Mozilla MDN JavaScript JavaScirpt Reference 1.5
George Kaiser