Skip to main content
Participant
Nov 28, 2023 6:55 PM UTC
Answered

bRename method not working

I have created a fillable form with an "Add Page" button on the final page to duplicate the final page and allow extra space as needed. The page is duplicating correctly, but all of the information entered in the fields on the initial page is copied to the new page as well. I have tried using the bRename method to make sure the fields on the duplicated page have different names and do not carry information from the previous page over, but it does not seem to be doing anything. Here is the JavaScript I am using for the button:

var a = this.getTemplate ("Positive Pay Users"); a.spawn({bRename:true});

 

Any help is appreciated! Thank you!

    This topic is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    JR Boulay
    Community Expert
    Community Expert
    Nov 29, 2023 11:01 AM UTC

    You should try this script:

    if (this.getTemplate("Positive Pay Users") != null) {this.getTemplate("Positive Pay Users").spawn(this.numPages, true, false);}
    Translate
    Acrobate du PDF, InDesigner et Photoshopographe
    kglad
    Community Expert
    Community Expert
    Nov 28, 2023 7:02 PM UTC

    in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

    p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



    <"moved from using the community">
    Translate
    Participant
    Nov 28, 2023 7:10 PM UTC

    Oh I see. Thank you!

    Translate
    kglad
    Community Expert
    Community Expert
    Nov 29, 2023 3:28 AM UTC

    you're welcome.  currently your post is in the acrobat forum (my best guess as to the program about which you're asking), https://community.adobe.com/t5/acrobat-discussions/brename-method-not-working/m-p/14263889#M69322

    Translate