dharmraj

Id/Data in json format restricts changes in approval

0 votes
Hello , I am creating few approval fields , where I am passing data in following format :

         {
                    "page":0,
                    "subtype":"TEXTFIELD",
                    "width":161,
                    "binding":None,
                    "extract":False,
                    "extractAnchor":None,
                    "left":607,
                    "top":289,
                    "validation":None,
                    "height":20,
                    "data":None,
                    "type":"INPUT",
                    "name": "own1_percentage",
                    "value":lead.own1_percentage or '',
        }
It works absolutely well. But whenever I add an ID to field, or something into data, values is appeared on the PDF and signer is able to edit the value as well, but after signing the document , new value(edited by the signer) is not preserved and it changes back to the value passed through json. Am I missing something ? Also , please explain the use of "data" here. How can I pass values to the data ? Many thanks!

Reply to: Id/Data in json format restricts changes in approval

1 votes
What URL are you posting to? Can you give all the details of your request? Thanks.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Id/Data in json format restricts changes in approval

0 votes
Hie Michael, I am posting to the url https://sandbox.esignlive.com/api/packages/. And I am passing json payload to the files argument while posting. It works well and data appears over PDF. What I want is I want to pass some data along with fields and get it back after the package is completed. Basically, I want to compare whether the value passed with fields have been modified by the signer or not. If can pass values to the data (or any other field attribute than values), I will be able to compare between passed data and return values. Thanks!

Reply to: Id/Data in json format restricts changes in approval

0 votes
Sorry to spam, link to edit my previous post is gone. I only want to know about This data attribute of a custom field. According to my understanding it says that we can pass arbitrary data set(data with our choice) while creating a field and this data will travel with the field throughout the cycle. If I am right, how in above JSON(first post of this thread ) we can assign 'data' attribute with some value? So that we can receive those values with a get request (/packages/{packageId}/documents/{documentId}/approvals/{approvalId}). Thanks.

Reply to: Id/Data in json format restricts changes in approval

0 votes
Gotcha. I think I've got it, now. I'll take a look here shortly and post back what I find on the data attribute. :)

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


Reply to: Id/Data in json format restricts changes in approval

0 votes
It doesn't appear that passing data through the data attribute does anything on the field. It seems to be cleared out each time. It's likely an unused attribute that needs to be removed. However, you can pass value through the data attribute on the package itself. So, if you wanted to pass default values of fields into the package's data attribute, you could do that and have access to the values, later. I'll check with product management to see what this data attribute is for, within the field object.

- Michael

Director, Partner and Developer Technologies, OneSpan

Facebook - Twitter - LinkedIn


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