Skip to main content
Participant
September 27, 2024
Question

Number of Characters in Dropdown List

  • September 27, 2024
  • 1 reply
  • 335 views

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.  

1 reply

PDF Automation Station
Community Expert
Community Expert
January 23, 2025

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

 

try67
Community Expert
Community Expert
January 23, 2025

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.