Skip to main content
Inspiring
August 21, 2023
Answered

Copy checked checkbox to another page on form

  • August 21, 2023
  • 1 reply
  • 1406 views

Hello

I have a question on page 1 of a form that requires the user to check either yes or no. On page 5 there is a summary of their answers, so I'd like to repeat that yes/no checkbox question but show the answer that they have already input, and save them from checking it again.

I can't figure out how to copy that already checked checkbox to a different page.

Thanks.

This topic has been closed for replies.
Correct answer kathleenm90423663

In case anyone reads this, I found the answer. In the radio buttons property box you have to check "Buttons with the same name and choice are selected in unison."

That seems to have fixed it!

 

Thanks for your reply Thom, I found some code you offered someone else a while ago that's been very helpful for me and I've used it often!

 

1 reply

Thom Parker
Community Expert
Community Expert
August 21, 2023

Give the checkbox field on Page 5 the same field name as the checkbox on Page 1. 

Watch this video tutorial:

https://www.pdfscripting.com/public/FreeStuff/AcroForm_Create/AcroForms_Part2g_WhyFieldNames_mp4.cfm

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Inspiring
August 21, 2023

Hi Thom

I've done exactly that - sorry it's actually a radio button not a check box. I have the a name for the group of 2 options, and then a name for each option. I copied and pasted that group to page 5 and made sure the name and options stayed the same (they didn't, I had to fix them).

But when I click a radio button on page 1, nothing happens on page 5. I thought it was as simple as pasting the group and options, but it's not working for me.

Thom Parker
Community Expert
Community Expert
August 21, 2023

In case anyone reads this, I found the answer. In the radio buttons property box you have to check "Buttons with the same name and choice are selected in unison."

That seems to have fixed it!

 

Thanks for your reply Thom, I found some code you offered someone else a while ago that's been very helpful for me and I've used it often!

 


Yes, you found the answer!  Details like it being a radio button, and not a checkbox, are key elements to providing good answers. 

 

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