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

Trying to get Text Field name to change based on the page it's on

New Here ,
Dec 07, 2018 Dec 07, 2018

Hey there,

I'm trying to set up a page within a PDF that I want to make multiple copies of.

The Text Fields' names on this page are unfortunately copied as well, resulting in multiple copies of the page, but I'm not able to edit each page's text fields separately (because they all have the same names)

Is there a way that the text field's name is pulled/changed based on what page in the document it is on? (example below)

example.jpg

TOPICS
PDF forms
829
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
1 ACCEPTED SOLUTION
Community Expert ,
Dec 07, 2018 Dec 07, 2018
LATEST

There are a couple of solutions to this issue.

1. As Try67 suggests, turn the page into a "Page Template" and then use the "template.spawn" function to create new copies of the page with unique field names.

2. Use the "Duplicate Across Pages" menu item (right click when in forms mode) to create unique copies.

Here's one way to do this with your existing form

    1) Copy the page you want repeated and then delete all the fields from the copy

    2) Make copies of the page that doesn't have all the fields on it until you have enough pages

    3) Go back to the first page. Put Acrobat in Forms mode,

        a) Select all the fields

        b) Right click and select "Duplicate Across Pages" (shown below)

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

View solution in original post

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
Community Expert ,
Dec 07, 2018 Dec 07, 2018

Only if you create them using a script.

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
Community Expert ,
Dec 07, 2018 Dec 07, 2018
LATEST

There are a couple of solutions to this issue.

1. As Try67 suggests, turn the page into a "Page Template" and then use the "template.spawn" function to create new copies of the page with unique field names.

2. Use the "Duplicate Across Pages" menu item (right click when in forms mode) to create unique copies.

Here's one way to do this with your existing form

    1) Copy the page you want repeated and then delete all the fields from the copy

    2) Make copies of the page that doesn't have all the fields on it until you have enough pages

    3) Go back to the first page. Put Acrobat in Forms mode,

        a) Select all the fields

        b) Right click and select "Duplicate Across Pages" (shown below)

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

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