Copy link to clipboard
Copied
As 'Mouse UP' action of that checkbox, add this script and change "Text field name" to your actual name of that text field:
this.getField("Text field name").value = event.target.value == "Off" ? "" : "UNCLASSIFIED";
Copy link to clipboard
Copied
Hi @Jo_Sh
Hope you are doing well. Per the description, I understand that you want to populate a text field with clicks on the check box.
I have found a thread that has a solution similar to your question. Please click the link: Solved: Populate checkbox with a button click - need help wi...
Let me know if this helps.
-Souvik.
Copy link to clipboard
Copied
As 'Mouse UP' action of that checkbox, add this script and change "Text field name" to your actual name of that text field:
this.getField("Text field name").value = event.target.value == "Off" ? "" : "UNCLASSIFIED";
Copy link to clipboard
Copied
Thanbks so much! is there a way to lock out the other boxes once one is selected?
Copy link to clipboard
Copied
Yes, you can set them to read-only, but you will have to use script in each checkbox, and change names for each checkbox, let's say your checkboxes are named "Review Type.0-3" use something like this as Mouse UP action for first checkbox:
this.getField("Review Type.1").readonly = event.target.value == "Off" ? false : true;
this.getField("Review Type.2").readonly = event.target.value == "Off" ? false : true;
this.getField("Review Type.3").readonly = event.target.value == "Off" ? false : true;
Then in second checkbox just change field names like this:
this.getField("Review Type.0").readonly = event.target.value == "Off" ? false : true;
this.getField("Review Type.2").readonly = event.target.value == "Off" ? false : true;
this.getField("Review Type.3").readonly = event.target.value == "Off" ? false : true;
etc... for rest of the checkboxes.
Copy link to clipboard
Copied
Does this work for Adobe Acrobat Pro?
Copy link to clipboard
Copied
Yes.