Skip to main content
Participant
September 6, 2024
Answered

Dynamic PDF

  • September 6, 2024
  • 1 reply
  • 636 views

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

This topic has been closed for replies.
Correct answer PDF Automation Station

You spelled visible wrong.

1 reply

PDF Automation Station
Community Expert
Community Expert
September 6, 2024

You spelled visible wrong.

Participant
September 6, 2024

Thank you