Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I set the format of a dropdown field to allign text at the top of the field instead of the center?

New Here ,
Apr 25, 2016 Apr 25, 2016

I have an Acrobat 11 form with simple data entry fields. I have, for the first time inserted dropdowns and most of them are single-line fields. However, there are a few examples where my field has to be a larger size to obscure an unwanted background. (The field will set the background colur to white if data is input but I didn't write the script for that.) When a selection is made it appears centred in the field and I need to be alligned to the top.

I presume I can put some script into the Format tab under Custom format script but I don't know enough about Javascript to work out the syntax. I presume it would be a simple line or two of code. Can anyone help?

TOPICS
Acrobat SDK and JavaScript , Windows
644
Translate
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

LEGEND , Apr 26, 2016 Apr 26, 2016

You don't have any control over that. They will always be vertically centered. You can use a separate field underneath the dropdown, however, and control its background. I'd suggest using a read-only button.

Translate
LEGEND ,
Apr 26, 2016 Apr 26, 2016

You don't have any control over that. They will always be vertically centered. You can use a separate field underneath the dropdown, however, and control its background. I'd suggest using a read-only button.

Translate
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 ,
Apr 26, 2016 Apr 26, 2016
LATEST

George, thanks for that. I'll give it a go.

Translate
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