• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

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.

TOPICS
Edit and convert PDFs

Views

6.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 11, 2018 Sep 11, 2018

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

items, though.

Votes

Translate

Translate
Community Expert ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

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

items, though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 11, 2018 Sep 11, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 12, 2018 Sep 12, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 13, 2021 Jan 13, 2021

Copy link to clipboard

Copied

Would I apply this to the format field? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 13, 2021 Jan 13, 2021

Copy link to clipboard

Copied

No. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 26, 2023 Jan 26, 2023

Copy link to clipboard

Copied

Hi 

If you put this code Format/Custom/Custom Script Code Area It will be work but you must change the code like this "this.getField("Dropdown1").selectItems(["\tItem1", "\tItem 1.1", "\t\tItem 1.2", "\tItem 2"]);"

After that just change the Item names (Item1,Item1.1...) t must be stay and don't forget change dropdown name .This way you can make to center your dropdownlists 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2023 Jan 26, 2023

Copy link to clipboard

Copied

The name of the method is setItems, not selectItems, though...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 22, 2020 Mar 22, 2020

Copy link to clipboard

Copied

post deleted

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 03, 2021 Feb 03, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 03, 2021 Feb 03, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 03, 2021 Feb 03, 2021

Copy link to clipboard

Copied

Ahhhhh. I understand.

Mary Helen Shuff | Art Director & Senior Graphic Designer | 508-Compliancy Coordinator | Forms Coordinator | Printing Liaison

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Yeah. Same issue. Not asure why we can center (or left right) align a text field, but not a drop down. Makes no sense.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 27, 2021 Aug 27, 2021

Copy link to clipboard

Copied

Having problems with this too. Thank you all for the feedback on the post, 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 05, 2024 Mar 05, 2024

Copy link to clipboard

Copied

LATEST

Remember, it's Acrobat, not Word. The function of PDFs is to strip formatting to make the files smaller. I don't disagree with you but it's the most likely reason why we can't have nice things.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines