Skip to main content
Participant
September 11, 2018
Answered

Trying to center justify a drop down field (Adobe Acrobat Pro 2017)

  • September 11, 2018
  • 2 replies
  • 10701 views

I can't seem to alter the justification of the data in the field.  It is automatically left justified.  I have a list of items that I need to have centered and not left justified.

This topic has been closed for replies.
Correct answer try67

Not possible. You can add spaces (or tabs, using a script) before the

items, though.

2 replies

mary helens142890
Inspiring
February 3, 2021

If I'm undertanding correctly and you are talking about the alignment of text that a user will enter (or has entered) inside a FIELD, you can adjust the alignment in the field's PROPERTIES menu >> in the OPTIONS tab.

 

See attached image.

Mary Helen Shuff | Art Director & Senior Graphic Designer | 508-Compliancy Coordinator | Forms Coordinator | Printing Liaison
try67
Community Expert
Community Expert
February 3, 2021

This is a text field. The question was about a drop-down field...

mary helens142890
Inspiring
February 3, 2021

Ahhhhh. I understand.

Mary Helen Shuff | Art Director & Senior Graphic Designer | 508-Compliancy Coordinator | Forms Coordinator | Printing Liaison
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
September 11, 2018

Not possible. You can add spaces (or tabs, using a script) before the

items, though.

renerg5thAuthor
Participant
September 11, 2018

Where can you add a script, I tried looking for that as well?

try67
Community Expert
Community Expert
September 12, 2018

You don't add this script. You need to execute it (from the JS Console, for example) to set the items of the field.

The code would be something like this:

this.getField("Dropdown1").setItems(["\tItem1", "\tItem 1.1", "\t\tItem 1.2", "\tItem 2"]);

The "\t" escape character is a tab. I used it twice to create indentation, but you can use it only once to align the text (somewhat) to the center of the field.