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

How to Check A box if a field is not blank

New Here ,
Nov 05, 2018 Nov 05, 2018

I want to have a checkbox checked if a certain field is not blank.

I have tried this formula in the text field

if (event.value=="")
{this.getField("Check Box10").value="Off"}
else
{this.getField("Check Box10").value="Yes"}

But it is not working any Ideas?

TOPICS
Acrobat SDK and JavaScript , Windows
638
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

correct answers 1 Correct answer

Community Expert , Nov 05, 2018 Nov 05, 2018

- Is the export value of the check-box really "Yes"?

Translate
Community Expert ,
Nov 05, 2018 Nov 05, 2018

- What kind of field is the second field?

- Where did you place the code?

- Are there any error messages in the JS Console after you change the field's value? (press Ctrl+J to open it)

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 ,
Nov 05, 2018 Nov 05, 2018
LATEST

- Is the export value of the check-box really "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