Quantcast
Viewing all articles
Browse latest Browse all 90000

Re: Is there a way to make a checkbox cause specific text fields to be required?

If the export value is not specified, it is by default set to "Yes" in the language of your version of Acrobat which can be quite annoying when you are creating a file using two computer that have different language settings.

 

If the export value is not important to you, you should use the property called .isBoxChecked(0) instead of the value property.  It works the same way except it is boolean (true or false) .

 

if (this.getField("myCheckBox").isBoxChecked == true){

     this.getField("textField").required = true;

}

 

alternatively, there is a method called .checkThisBox() for manually checking boxes.

 

this.getField("myCheckBox").checkThisBox(0, true) will check it while (0, false) will un-check it regardless of the export value.


Viewing all articles
Browse latest Browse all 90000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>