Skip to main content
Participant
February 11, 2025
Answered

Fillable Form drop down list word wrap

  • February 11, 2025
  • 1 reply
  • 918 views

I am putting a drop down list in a fillable form that the text needs to word wrap in order to fit in the box on the form. Since multiple lines is not an option in the properties. 

 

Thank you for your help

Correct answer PDF Automation Station

Multiple lines are not available in dropdown interface properties but you can do it with a script in the console:

this.getField("Dropdown1").setItems(["ABCDEFG\nHIJKLMNOP", "QRSTUV\nWXYZ"])

1 reply

PDF Automation Station
Community Expert
Community Expert
February 11, 2025

Multiple lines are not available in dropdown interface properties but you can do it with a script in the console:

this.getField("Dropdown1").setItems(["ABCDEFG\nHIJKLMNOP", "QRSTUV\nWXYZ"])

Participant
February 11, 2025

Thank you! I didn't understand till I opened your link and seen the video. To put the cherry on top is there a way to justify the text to the top of the box on the form? 

PDF Automation Station
Community Expert
Community Expert
February 11, 2025

Dropdown text is centered vertically.  Instead of multline I would suggest a multiline text field with a calculation that pulls the value from a single line dropdown.  You can set the visibility of the dropdown to "Visible but doesn't print".  The text will wrap naturally in the text field.