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

creating a button with a function to add more text field boxes when the user needs

New Here ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

I have created text fields in a column format for users to be able to add multiple employees. Examples of information inptted: Last Name, First Name, Date of Birth. Some users may only need to put in 5 or 6 names while other users may have to input 20 or so names. Is there a way to create a button to add another line for input? Basically there would be one line of text fields, then the user would hit "add" to input another name. I am trying to alleviate from having to have lets say 20 text fields that the user can input information in, and if they only have 5 names, 15 would just remain blank on the pdf form.

 

Thank you!

TOPICS
Create PDFs , Edit and convert PDFs , How to , JavaScript , PDF forms

Views

149

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 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

Not really. You can create those fields in advance, hide them and then make them visible when needed, but when they are hidden there would just be an empty spot on the page where they are located.

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 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

LATEST

No, but you can add a new page of entries with a "Page Template".  

You can also hide unused entries by hiding the fields. 
https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm?sd=40

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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