Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Forms Tagging with Javascript

Guest
Dec 14, 2018 Dec 14, 2018

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
554
Translate
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
Community Expert ,
Dec 14, 2018 Dec 14, 2018

Please explain in more detail what you mean. How is this related to forms? What kind of fields are you referring to? etc.

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

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.

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

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

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

Yes

Translate
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
Community Expert ,
Dec 14, 2018 Dec 14, 2018
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");

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

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.

Translate
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