Copy link to clipboard
Copied
Hello,
Curious if it's possible to make a specific dropdown selection also populate specified checkboxes later on a .pdf form? Other options within the dropdown should not check any boxes. Is this possible? Thanks!
Copy link to clipboard
Copied
In the dropdown field under 'Options' tab, check 'Commit selected value immediately' if you want the script to trigger without the need to click outside the field once you make the choice.
Use this as 'Validation script of dropdown field:
this.getField("Unbundled").checkThisBox(0,event.value == "DB" ? true : false);
this.getField("Check Box28").checkThisBox(0,event.value == "DB" ? true : false);
this.getField("Check Box29").checkThisBox(0,event.value == "DB" ? true : false);
this.getField("Check Box30").checkThisBox(0,event.value == "DB" ? true : false);
this.getField("Check Box26").checkThisBox(0,event.value == "DB" ? true : false);
this.getField("Check Box32").checkThisBox(0,event.value == "DB" ? true : false);
And here is your file with script added:
https://drive.google.com/file/d/1k_VO9gnLuMP3EdHsDPkvQD46eT9qN5DU/view?usp=share_link
Copy link to clipboard
Copied
Use this:
this.getField("Staffing Needed").checkThisBox(0, event.value=="High*" || event.value=="Very High*");
Copy link to clipboard
Copied
is there any way to do this, if i enter anything in a text box and the box is checked.
Copy link to clipboard
Copied
if(event.value != "")
this.getField("checkbox2").checkThisBox(0,true);
Copy link to clipboard
Copied
thank you so much
Copy link to clipboard
Copied
No, for all 3 options, i want the box to be checked.
Copy link to clipboard
Copied
Then just add it to yes/ no conditions:
if(event.value == "Yes" || event.value == "No" || event.value == "None")
Find more inspiration, events, and resources on the new Adobe Community
Explore Now