You are viewing limited content. For full access, please sign in.

Question

Question

Populating PDF checkboxes through Workflow

asked on July 16, 2016 Show version history

Hi,

I am trying to populate Adobe PDF checkboxes using database values in Workflow.  I don't see where I'd include Javascript in Workflow; and so far, I've been unsuccessful trying to get this to work by putting the Javascript directly into the PDF.

For each set of checkboxes, I have a hidden field that stores the value from the database.  Based on that value, I'm trying to set the appropriate checkbox.

Example: I have a hidden field called "RegMed".  If the value is "Y", I want to check the "RegMed_Yes" checkbox.  If the value is "N", I want to check the "RegMed_No" checkbox.

What is the best way to accomplish this?

Thank you!

0 0

Replies

replied on July 17, 2016 Show version history

 

For now, I have a solution!!!  Not sure if it's the best though.  After playing around, I created a separate database table that stores all of the possible checkbox selections as bit values and store a 1 or 0 in those fields based on the main database field value.  From there, I mapped those bit values directly to each individual checkbox.

Works for now but I am definitely open to better solutions!   

0 0
replied on July 18, 2016

Do you have any control over the PDF form? It sounds like the PDF is using separate checkboxes (aka, multiple selections allowed) for what should be a radio button field (only one value allowed at a time).

0 0
replied on July 18, 2016

Using radio buttons, I haven't quite figured out how to dynamically tell the form which button to check.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.