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

Form calc radio button

shahal
Registered: May 3 2007
Posts: 43

In my scripting window, I did select javascript as the language. While there were no error popups, nothing happened in my numerical field even though I used "calculate" in my numerical field.
What am I doing wrong?

My Product Information:
Acrobat Pro 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Well, the error in your previous post clearly states that the language is form calc. I went back to your original post and it looks like that's what you were doing in the first place so just leave it like it is. It also states that the accessor is incorect. This means that something in the path used to get the field values is wrong. This path has to exactly match the path to the field in the Hierarch Window. It aslo looks like you're trying to access the Radio button itself? It's hard to tell since is looks like you copied Carl's code exactly. Did you also use these names in your form hierarchy? But anyway, the export value of the group is associated with the group, not the individual buttons. Said another way, a radio button group has only one value for the whole group. You can add the values of different groups together but you can't add the value of buttons in a group.

It would be very helpful if you could post your form somewhere we could look at it. Otherwise our answers are just speculation.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script