Skip to main content
Participant
March 3, 2023
Question

How to create two dynamic form fields with one space in between?

  • March 3, 2023
  • 1 reply
  • 803 views

I have to create a pdf form that works like a letter - one text field for the first name and a second text field for the last name. The text can't overlap each other on really long names or appear with large gaps between the first and last name with a short name. How do I set up the last name field to respond to the ending location of the first name field?

 

If there is a source that walks through this, I'll take it. I could not find one in the PDF Form user guides.

Thanks!

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
March 3, 2023

set the alignment on the first name field to be "right" aligned and last name field to be "Left" aligned. Now the fields can be arranged with one space between them. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
March 6, 2023

Thank you for the suggestion. While this did help to try and align a first and last name with one space inbetween, we found in testing that the long first name goes outside the print parameters, so it ends up not working for us anyway. I appreciate the feedback.