Skip to main content
Participant
Feb 11, 2025 2:50 PM UTC
Answered

Fillable Form drop down list word wrap

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

PDF Automation Station
Community Expert
Feb 11, 2025 3:30 PM UTC

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"])

4 replies

PDF Automation Station
Community Expert
Community Expert
Feb 11, 2025 3:30 PM UTC

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"])

Translate
Participant
Feb 11, 2025 4:08 PM UTC

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? 

Translate
PDF Automation Station
Community Expert
Community Expert
Feb 11, 2025 4:38 PM UTC

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.

Translate