I am using Acrobat 5. I should make a form where is text fields which has some default value. Every field has a checkbox and if it is not checked value will be 0.
Can someone help me how to do this?
I am using Acrobat 5. I should make a form where is text fields which has some default value. Every field has a checkbox and if it is not checked value will be 0.
Can someone help me how to do this?
if(!event.target.isBoxChecked(0))
{
this.getfield("MyText1").value = 0;
this.getfield("MyText1").readonly = true;
}
else
{
this.getfield("MyText1").readonly = false;
}
If you want the text field to remain zeroed, you should also set the field to readOnly.
You might also consider greying out the zeroed field. Take a look at this article:
http://www.acrobatusers.com/tutorials/2007/js_disabling_fields/
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script