Skip to main content
Known Participant
February 13, 2024
Question

Inserting a text field from combo box

  • February 13, 2024
  • 1 reply
  • 1900 views

Hello i am new to this field of PDF forms and I wanted to do something "simple" but it turns out i have no idea how.

I have a file with which starts with a combo field and it autofills several boxes after it. I want to add an option to the combo field to ADD another text box after the final so the last person can add additional information. Is it even possible?

(i have attached a quick mockup, not currently on my work PC so i cant show the original)

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
February 13, 2024

You need to create that field in advance and show/hide it based on the user's selection in the drop-down.

As the custom calculation script of the text field enter:

 

event.target.display = ? (this.getField("Dropdown1").value=="test 2") ? display.visible : display.hidden;

Known Participant
February 13, 2024

That is actually quite ingenious, would not have thought of it! Thank you. This potentially works with other objects i am assuming so this is wonderful!

try67
Community Expert
Community Expert
February 13, 2024

Yes, it can work with any other field or comment (although the latter is more complicated to set up).