ram0123 | Posts: 10

Is there a service available to call when user click on OPT-OUT or Accept button

0 votes
I would like to create my own "Accept" and "OPT-OUT" buttons with a custom message as popup to be displayed when user click on OPT-OUT or Accept button. I would like to know if there is any service available in EsignLive that I can call, when user click on OPT-OUT or Accept button. Thanks, Ram

Approved Answer
mwilliams | Posts: 957

Reply to: Is there a service available to call when user click on OPT-OUT or Accept button

0 votes
You would not call the code after accepting the consent in the iframe session. You'd have to essentially make your own web consent with the same text as the document and just apply the signature before opening the signing session. This would allow you to control all that happens with the accept and opt-out buttons for the consent form. You could potentially also just take the consent form out of the actual document package and use your own consent, prior to opening the session. Signing the document for them would essentially be the same thing, but you'd just have the actual physical copy of the document vs just the acceptance in a web form. Hopefully this makes sense. Let me know. :)

mwilliams | Posts: 957

Reply to: Is there a service available to call when user click on OPT-OUT or Accept button

0 votes
Can you explain more about what you'd like to do? There isn't a way to force a pop up when a user clicks one or the other from the consent document. Accepting takes the user to the documents and opting out pops up a "reason dialog" to collect their reason for opting out. I think you can shut off opt-out and could potentially make your own opt-out button to do whatever you want with. I'll have to look into this. You cannot remove the "Accept" button from the ceremony for your own though. Clicking on Accept will just take you to the documents. You could still create your own accept button and sign the Accept document for them with the API, if they click your accept button, with something like:
eslClient.SignDocument(PackageId packageId, string documentName)
To avoid the chance that they clicked on the "Accept" in the eSignLive ceremony though, you'd have to do this Accept/OptOut step in a web page prior to accessing the actual document, I guess. I'd definitely be interested in hearing what you're trying to do. :)

ram0123 | Posts: 10

Reply to: Is there a service available to call when user click on OPT-OUT or Accept button

0 votes
Instead of using "Accept" and "OPT-OUT" buttons on the Esign ceremony. I would like to have full control on what to display to the user when user click on "Accept " and "OPT-OUT" buttons and navigate accordingly. The above code snippet for "Accept" button looks like a viable solution. I will let you know once I complete the testing. eslClient.SignDocument(PackageId packageId, string documentName) How can I navigate the user to actual document after user click on "Accept" button on consent form and call above snippet code?

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