Skip to main content
September 24, 2019
Answered

How to right justify characters entered by drop-down list.

  • September 24, 2019
  • 1 reply
  • 2642 views

It is as the title.

I'm looking for a way to right justify characters typed in a drop-down list.

 

The drop-down list properties do not have a place to change the alignment like the text box properties.

If I use it, all characters will be left aligned.

 

I tried to enter the following into the formatting box, but it didn't change.

I'm not sure how to write at here.

 

style.textAlign = 'right'

 

I am Japanese and I am not good at English.

I'm looking for a huge page of "js_api_reference.pdf" with more than 700 pages, but I don't know where to look.

 

Please tell me the information I should get.

Thank you !

 

This topic has been closed for replies.
Correct answer ls_rbls

Hi,

 

You cannot do that with a dropdown menu.

 

There may be a few people out there that will know how to mess around with that, but in a very limited way.

 

You are better off hitting the space bar and aligning the text manually.

 

You can, however, change the pulldown arrow button; it should appear left or right as an pulldown option for the users of the form...

 

You can change this in the field properties options which will give the dropdown field the appearance that the text is justified to the right margin.

 

You should also consider that if you have a dropdown menu with export values in it and  that are needed in the calculation scripting of other fields in that form it will not work when you type in your own items

 

That will require additional and more advanced scripting to work around it.

 

 

See brief explanation here:

https://community.adobe.com/t5/Acrobat/How-to-align-the-text-of-a-drop-down-menu-box-centered-or-right/td-p/9858832

1 reply

ls_rbls
ls_rblsCorrect answer
Community Expert
October 19, 2019

Hi,

 

You cannot do that with a dropdown menu.

 

There may be a few people out there that will know how to mess around with that, but in a very limited way.

 

You are better off hitting the space bar and aligning the text manually.

 

You can, however, change the pulldown arrow button; it should appear left or right as an pulldown option for the users of the form...

 

You can change this in the field properties options which will give the dropdown field the appearance that the text is justified to the right margin.

 

You should also consider that if you have a dropdown menu with export values in it and  that are needed in the calculation scripting of other fields in that form it will not work when you type in your own items

 

That will require additional and more advanced scripting to work around it.

 

 

See brief explanation here:

https://community.adobe.com/t5/Acrobat/How-to-align-the-text-of-a-drop-down-menu-box-centered-or-right/td-p/9858832