Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Copy checked checkbox to another page on form

Community Beginner ,
Aug 21, 2023 Aug 21, 2023

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.

TOPICS
PDF forms
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Beginner ,
Aug 21, 2023 Aug 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!

 

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 21, 2023 Aug 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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 21, 2023 Aug 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 21, 2023 Aug 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!

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 21, 2023 Aug 21, 2023

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 21, 2023 Aug 21, 2023
LATEST

Yep, I realized that as I was googling the wrong type of button! The client wants it to look like checkboxes rather than radio buttons which is why I was initially calling it the wrong thing. 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines