I can't get this if statement/calculation to work



in acrobat form want check see if checkbox field has been checked (value=yes) and, if has, put specific, static number in field. that's it.  seems simple can't figure out.  (excel--yes.  acrobat script--no.)  please help! ahead.

in target field's custom calculation field, enter this:

 

if (this.getfield("checkbox1").value=="yes") {event.value = 12;}

 

you need change name of check box field (between quotes)

and of course value want apply.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO