Adding pages to form via JS and models. Stop the text to copy to the new page

Hello community,

In the last days, I was doing a crash course in Adobe acrobat and JavaScript. One of our clients asked us to make a PDF form with fields to fill and a button that will make a new copy of the form.

I have text fields, model, and javascript for the button to load the model.

My problem is that text in the fields on the first page is copied to the extra pages when they are made.

I did a ton of research and found a lot of answerrs talk about having the renamed domain. I've included the part bRename to my JS, and text fields indicate that they are a differnet name, but he always pulls data from the first page.

Here is the script I use. I'm also runing Acrobat X standard.

var a = this.getTemplate ('new Page');

a.Spawn ({bRename: true});

Any suggestions would be a great help. I can provide necessary additional information.

You can reset the fields on the newly created page. All fields on the page will have the prefix "Pn", where n is the number of the newly created page. Since your code adds the page at the end, the code to reset the fields that you can use after the code that generates the model can be:

resetForm (["P" + (numPages - 1)]);

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • is 35.0 firefox 32 or 64 bit

    I run toshiba 64-bit w8.1. Have firefox 35.0 is 32-bit or 64-bit? Need to know because when I updated Java, they asked what ran the forest of browser. If its 64-bit I have to download other Java. Cannot find where the # is for firefox 35.0 bit! Can s

  • How to convert the old sync key (12 characters, no dashes) to the new sync key (31 characters, 5 dashes)?

    My sync key was of 12 characters, no dashes (xxxxxxxxxxxx). After uninstalling and reinstalling FF 3.6.13, Sync 1.6.1 refuses my sync key to 12 characters.I discovered, that the keys of synchronization for all users have been activated to 31 characte

  • iCloud asked me to update my password

    I've updated my password to my macbook iCloud. After that, I could not in my macbook with my usual password. I used the one I've just updated to iCloud and I got. Is this weird? Should I be worried?

  • How to show only one date only over a period of two days, which corresponds to 24 hours

    Hello, I have a problem that I hope someone knows how to fix easily without having to create tables in a schema that things are moving very slow with our DBAs unfortunately because they have too much on their plates at the moment...Here is an example

  • Multi-site PSC and AD integration

    I have 3 sites, each with 3 different domains and active directory 3 vCenter servers.  I use only external PHC.  In this scenario that I have 3 different areas of the SSO can also or I join all my private security companies to one area of SSO?