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

Dynamic PDF

New Here ,
Sep 06, 2024 Sep 06, 2024

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

You spelled visible wrong.

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

You spelled visible wrong.

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

Thank you

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