Skip to main content
Participating Frequently
February 3, 2023
Question

How to read Radio button field using Embed API

  • February 3, 2023
  • 1 reply
  • 1425 views

I'm using the Embed API to display a PDF with several checkboxes and radio buttons in a browser.

I can then fill in the checkboxes and radio buttons and save the file.

After the save, I want to read back the values of the checkboxes and radio buttons.

Is there a way to do this with the Embed API ?

If not, any suggestions?

 

Thanks,

John

    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    February 3, 2023

    Sorry no, you can't get access to form values via the Embed API.

    Participating Frequently
    February 5, 2023

    Raymond, thanks for the quick response.  This leads me to another issue though.  In my pdf file, I have several Yes/No questions with checkboxes.  For most questions, I can manually update the checkboxes in a browser (by clicking the checkbox after calling the Adobe Embed View method) and read back the correct status using a JS library called pdf-lib.  However, for some of the questions (ie. questions 1 thru 5 and question 9), it does not read back my updated status.  I always get the true/false value of the original state of that checkbox.   Note that programmatically the check() and uncheck() methods work, its just the manual clicking that does not report updated status.  I've attached my base pdf.  Thanks for any help/thoughts you may provide.

    Raymond Camden
    Community Manager
    Community Manager
    February 6, 2023

    I can't speak to pdf-lib, I don't know it. 🙂