Forms Tagging with Javascript

New Here ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

How would I write in javascript for forms tagging that X should be true when Y is not true? Is there a way to do this in tagging without javascript? I have tried all operators of !=, ===, etc.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

79

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
Adobe Community Professional ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

Please explain in more detail what you mean. How is this related to forms? What kind of fields are you referring to? 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 ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

On a PDF, I have two checkboxes: one is checked by the user, and I want the other checkbox to check automatically whenever the first checkbox is not selected.

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
Adobe Community Professional ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

And un-check automatically when the first box is checked?

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 ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

Yes

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
Adobe Community Professional ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

LATEST

Use this code as the Mouse Up event of the first check-box (adjust the field name as necessary):

this.getField("Check Box2").checkThisBox(0, event.target.value=="Off");

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 ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

On a PDF, I have two checkboxes: one is checked by the user, and I want the other checkbox to check automatically whenever the first checkbox is not selected.

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