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

Calulate Value is Checkbox is checked

lab63
Registered: Nov 3 2010
Posts: 5

I have 3 fields set to calculate as part of a total. I want one of them to calculate ONLY if the box beside it is checked. I think I can do a simplified field notation but I'm not sure how to set 'if field is checked'. How can I do this?
 
field1+field2(if field3 is checked)+field4=field5

My Product Information:
Acrobat Pro, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You can not do this using the "Simplified Field Notation". This calculation method is restricted to simple field names, you need to use the JavaScript escape character ("/") to allow the use of a dot in a field name. This method of calculation does not support any field property or method, does not support any JavaScript objects or functions.

George Kaiser

lab63
Registered: Nov 3 2010
Posts: 5
I've never used JavaScript. Would I have to write the script and put it in the Custom Caculation script of the Text Field Properties? If so, how should it be written?