- "CodeFlow": "<h3>This sample features:</h3><ul><li>Creating a clickwrap<li>Embedding a clickwrap on your site</li></ul><h3>Code flow:</h3><h5>Step 1</h5><p>When the form is submitted, the Click API is used to create a new clickwrap. A clickwrap is a DocuSign technology that enables you to have a webpage where you can ask your users to click to agree to something. To create the clickwrap, you need to provide the <code>name</code>, the <code>displaySettings</code> that control what the UI experience will look like, and a <code>document</code> that will be shown to the user when they accept.</p><p>To create the clickwrap, send an API request to:</p><pre>POST /v1/accounts/{accountId}/clickwraps</pre><h5>Step 2</h5><p>The call from step 1 returns the clickwrap ID, which we need. We then add this to the HTML on our website so that it now looks like this:</p><pre><code><div id=\"ds-terms-of-service\"></div></code><code><script src=\"https://demo.docusign.net/clickapi/sdk/latest/docusign-click.js\"></script></code><code><script></code><code>docuSignClick.Clickwrap.render({</code><code> environment: 'https://demo.docusign.net',</code><code> accountId: '<your account ID>',</code><code> clickwrapId: '<your clickwrap ID',</code><code> clientUserId: 'UNIQUE_USER_ID'</code><code>}, '#ds-terms-of-service');</code><code></script></code></pre>"
0 commit comments