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

How to Check A box if a field is not blank

New Here ,
Nov 05, 2018 Nov 05, 2018

Copy link to clipboard

Copied

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

Views

422

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

Community Expert , Nov 05, 2018 Nov 05, 2018

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

Votes

Translate

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

Copy link to clipboard

Copied

- 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)

Votes

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

Copy link to clipboard

Copied

LATEST

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

Votes

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