Skip to main content
Participant
Sep 27, 2024 6:34 PM UTC
Question

Number of Characters in Dropdown List

Question re: Drop-down - character limit.    I have two drop-down menu items.  One is 276 characters with spaces and teh other is 694 with spaces.  

Question1: How can I increase the character spaces?  

Questoin 2:  How can I get the text to wrap.  

2 replies

PDF Automation Station
Community Expert
Community Expert
Jan 23, 2025 7:29 PM UTC

1.  Make the field bigger or set the font size to auto.

2. Use the setItems method in the console with line breaks in the string.  Example:

this.getField("Dropdown1").setItems(["ABCDEFG\rHIJKLMNOP\rQRSTUV","AABBCC\rDDEEFF\rGGHHII"])

 

Translate
try67
Community Expert
Community Expert
Jan 23, 2025 10:51 PM UTC

You should be careful of adding line-breaks in a drop-down field. It's not a documented feature and will be buggy if the number of lines is not the same in all items.

Translate