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

checking check box based on text field

New Here ,
Oct 13, 2022 Oct 13, 2022

Hi i am new to java and i want to check check box automaticaly based if other text field is filled with some text. If that text field is empty then check box should be empty as well. Using adobe acrobat pro 2020

802
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
1 ACCEPTED SOLUTION
Community Expert ,
Oct 13, 2022 Oct 13, 2022

As 'Validate' script of text field, use this and replace "Check Box Name" with the name of your checkbox:

this.getField("Check Box Name").checkThisBox(0,event.value == "" ? false : true);

View solution in original post

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 ,
Oct 13, 2022 Oct 13, 2022

<moved from using the community>

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 ,
Oct 13, 2022 Oct 13, 2022

As 'Validate' script of text field, use this and replace "Check Box Name" with the name of your checkbox:

this.getField("Check Box Name").checkThisBox(0,event.value == "" ? false : true);

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
New Here ,
Oct 13, 2022 Oct 13, 2022
LATEST

Works great thanks a lot

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