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

Dynamic PDF

New Here ,
Sep 06, 2024 Sep 06, 2024

Copy link to clipboard

Copied

I have a form with 4 checkboxes ("Reason") acting as radio buttons (Deliver, Coordination, Efforts, Other).  When Other is selected I would like a text box to appear.  This is the script I am using:

reason= this.getField("Reason").value;
field = event.target;

if (reason == "Other") {
field.display = display.visable;
} else {
field.display = display.hidden;
field.value = "";
}

However, my text box is not appearing.  What am I doing wrong? 

I am new to writing javascript.

 

Thank you

TOPICS
How to , JavaScript , PDF forms

Views

262

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
1 ACCEPTED SOLUTION
Community Expert ,
Sep 06, 2024 Sep 06, 2024

Copy link to clipboard

Copied

You spelled visible wrong.

View solution in original post

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 ,
Sep 06, 2024 Sep 06, 2024

Copy link to clipboard

Copied

You spelled visible wrong.

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
New Here ,
Sep 06, 2024 Sep 06, 2024

Copy link to clipboard

Copied

LATEST

Thank you

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