Skip to main content
Participant
November 28, 2023
Answered

bRename method not working

  • November 28, 2023
  • 3 replies
  • 1417 views

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 has been closed for replies.

    3 replies

    JR Boulay
    Community Expert
    Community Expert
    November 29, 2023

    You should try this script:

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

    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">
    Participant
    November 28, 2023

    Oh I see. Thank you!

    kglad
    Community Expert
    Community Expert
    November 29, 2023

    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