1 person found this helpful
There is no similar method for copying a field programmatically. You can either use the doc.addField method to add a field to the pages and then set its properties or spawn a hidden template page that just contains the buttons as an overlay on each page.
Out of curiosity, why are you including this: bt1.delay = false;
I will give it a try! Thanks
I dont know the correct use of the delay=false;
Im just a graphic designer, and i have done this only by reading the examples of the API, my intention was just to make sure there was no delay in the script execution. That seemed important
If you want an exact copy of a button on multiple pages the easiest way to
do it is to go to Form Edit mode, then right-click the button and select
Duplicate. Then you enter the page range to duplicate to, and you're done.
No scripts required.
If you really want to do it with a script you'll need to use the addField
method, as was described earlier.