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

RADIO BUTTONS Sub-Names? Child.Names? Possiblity???

A1xy
Registered: Feb 7 2008
Posts: 11

Acrobat 8 --creating FORMS

I've figured out how to make selections with Radio Buttons


And to do Calculations: SUM, AVERAGE, etc.



I just need help with 1 little thing:



RADIO BUTTONS
can be given differing -EXPORT VALUEs-
under OPTIONS
--in Radio Button Properties



The Text Field Properties >> CALCULATE

does accept Radio Button -values- for calculations

and would calculate properly

--if it could differentiate between Radio Buttons

which have the same name, but differing Export Values



**** IF the Radio Buttons could be given a NAME

--with a subclass eg: 3-1 3-2 3-3
 (or whatever else)
--all working in unison as a button 3

--and still working as select/deselect

**then that would be so helpful



*** Is there any way to assign a NAME & sub-NAME to radio Buttons?
Is this somehow related to Parent-Child..???


Is there a simple solution in one of the dialogue boxes?



OR
If a JavaScript is needed to assign sub-Names to Radio Buttons
or to perform such a function
-- what would be the exact script???
so that I could copy / paste it

--AND where would I enter this scrip? (ie dialogue box)

My Product Information:
Acrobat Pro 8.1, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Is one of the radio buttons in the group selected by defautl?

If not you will have to account for the "Off" value of the group.

To see what is happening, add the following script to the start of your calculation:

// open and clear the JS console
console.show();
console.clear();
var rbValue = this.getFeild("RadioButtonFieldName").value; // get the field's value
console.printlin("Field value: " + rbValue); // display the value
console.println((typeof rbValue: " + (typeof rbValue) ); // type of item
console.println("isNaN(rbValue): " + isNaN(rbValue) ); // is it Not a Number
console.println("Number(rbValue): " + Number(rbValue) ); // can it be converted to a number?
cosole.println("0 + rbValue = " + (0 + rbValue) ); // try a unity addition

George Kaiser

A1xy
Registered: Feb 7 2008
Posts: 11
Thankyou for your response



The only thing I really need is:

Is there any way to assign a NAME & "sub-NAME" to radio Buttons?**** IF the RADIO BUTTONS could be given
--a NAME & SUB-CLASS eg: 3.1 3.2 3.3
 (or whatever else)
--all working in unison as button 3

--and still working as select/deselect



Would you or anyone else have an answer to this only?