Skip to Main Content
Ideas Portal
Status New Idea
Workspace eDocBuilder
Created by Guest
Created on Feb 8, 2023

Dynamically Resize Form Fields

We have a client that wants a name and title field to be left aligned and start more in the center of a business card and when the name or title get larger the text field will grow to the left and right (maintaining the left alignment). Currently this is not possible, but would like to be able to fulfill our client's request. Here are some screenshots with the functionality that is desired. I also have an inDesign file with the sample text box, however, I cannot attach it here so here is a link to download it if you'd like to check it.

https://sierrabg.sharefile.com/d-sc2c9d923e5a24b568de49f0add518448


  • Attach files
  • Jim Riddles
    Reply
    |
    Feb 21, 2023

    I'm not even remotely certain such a thing could be done programmatically. It would depend on the PDF tool that Aleyant uses in eDocBuilder. However, you can certainly work around this limitation. It won't be perfect, but it could help.

    My recommendation would be to create three separate container fields in your template for the name and title. Then use VB script to count how many characters are in the name and title fields, and using that information choose which container field is populated.

    As I said it is not perfect. Unless you are using a mono-spaced font, you can't reliably determine how many characters will fit on a line. However, if the titles are pre-determined you can always figure which container field you will need to use on the template.