Skip to main content
danaw6950870
Participating Frequently
February 15, 2018
Question

How do I Make Multiple Copies of a Radio Button AND keep the Java Script

  • February 15, 2018
  • 1 reply
  • 4390 views

I am trying to make multiple copies of a radio button group AND keep the Java Script that I have input. I have 1 group of 3 radio buttons that has a script, I seem to be unable to copy the radio button while still retaining the java script. It doesn't copy with the new buttons!

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
February 15, 2018

What mechanism are you using to copy the buttons?

When I copy a radio button using ctrl-C/ctrl-v, all properties are copied.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
danaw6950870
Participating Frequently
February 15, 2018

If I use ctrl-C/ctrl-V-yes the properties are all copied but then when you select one of the buttons the other is selected as well. I would have to go back and rename them all.

Thom Parker
Community Expert
Community Expert
February 15, 2018

Yes, when you copy fields you have to rename them. That's how it works. That's got nothing to do with the JavaScript.

An alternative to the copy/paste is to use the "Create Mulitple Copies" option on the Right Click pop up menu that appears when you have fields selected. I believe this option renames the fields.

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