ncramaro

Field Injection - Check Boxes

0 votes
Hey there, I'm building out an application where I have to prepopulate a PDF with values the we either already have or gather from the user. I've used your blog post on field injection to setup the JSON structure for the REST calls. For the most part it works. I can create the package, inject fields, and initiate a signing session in an iframe. However some of the fields on our PDFs are check boxes. I have tried passing the value has a bool and as a string. Is PDF checkbox injection supported through your REST API at this point in time? And if so what is the structure of the JSON? Thanks.

Approved Answer

Reply to: Field Injection - Check Boxes

0 votes
From what it looks like, eSignLive uses text boxes for all injected fields. Radio buttons and check boxes are simply Text boxes with an "x" in it. So, all you'd have to do is put a small text box (not a check box) over each checkbox on your form and insert a value of "x" or "X" to check it.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Field Injection - Check Boxes

0 votes
The value I would expect would be "X", however, this doesn't seem to be working for me either. There are also differences between sandbox.e-signlive.com and sandbox.esignlive.com. With e-signlive.com, nothing fails, but nothing ever checks the check box; it's always empty. With esignlive.com everything fails except for passing null as the value. I will look into this further, in the morning and let you know.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Field Injection - Check Boxes

0 votes
Thanks for looking into this. Unfortunately when I try to pass an 'x' as the value for a check box the API throws a 500. I am on sandbox.esignlive.com so I don't know if it is because there are features that have not been ported over to the new API service or not. It looks like the error is unexpected which is leading me to believe that Adobe PDF check boxes and radio buttons are not supported at this time.

Reply to: Field Injection - Check Boxes

0 votes
That is correct. As I said in my last response, eSignLive uses a text box and a value of "X" to mark a check box or radio button, so you'll need to put a text box over the check box area on your form instead of the check box form field.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Field Injection - Check Boxes

0 votes
Alright thanks for confirming this for me. Do you know if supporting this is on the road map for future support?

Reply to: Field Injection - Check Boxes

0 votes
I will look into it. One thing you could do is to post in the "Enhancement Ideas" forum. Our product managers watch that forum for ideas from customers. :) https://developer.esignlive.com/forums/forum/general/enhancement-ideas/

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Field Injection - Check Boxes

0 votes
Sounds good. Thanks again.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off