Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Looking to have certain check boxes checked based on another field

New Here ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

Okay, 

I hae a form uploaded into a website. The form pulls data based on entries made on an account. All of that is working. The form has to be changed, and certain fields that were text fields are now check marks. I am looking for a way to have the correct check box checked based on the response in a field. 

 

My thinking is leaving the drop down response on the site then having a hidden field that is populated with the text. Based on that text, a certain check box will be checked.  So if "Text Box 1" has "Answer 1" in it "Check Box 1" will be checked. If "Text Box 1" Has "Answer 2" in it, "Check Box 2" will be checked and so on and so forth. 

 

This is kind of hard to explain so I hope that was clear. 

TOPICS
How to, JavaScript, PDF forms

Views

31

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Aug 25, 2021 Aug 25, 2021
As the custom validation script of "Text Box 1" you can enter something like this: this.getField("Check Box 1").checkThisBox(0, event.value=="Answer 1"); this.getField("Check Box 2").checkThisBox(0, event.value=="Answer 2"); etc.

Likes

Translate

Translate
Adobe Community Professional ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

As the custom validation script of "Text Box 1" you can enter something like this:

this.getField("Check Box 1").checkThisBox(0, event.value=="Answer 1");

this.getField("Check Box 2").checkThisBox(0, event.value=="Answer 2");

etc.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 25, 2021 Aug 25, 2021

Copy link to clipboard

Copied

LATEST

Worked like a charm. Thank you. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines