Put the sign button on your site

Open the signature in a window on your own page with embed.js.


  1. 1

    Create the envelope from your server with the signer's channel set to link, and keep the signing_url the API returns.

  2. 2

    Add the script to your page: <script src="https://api.socialdna.app/api/esign/embed.js"></script>.

  3. 3

    Put the link on any button: <button data-myesign-url="SIGNING_URL">Sign the agreement</button>. A click opens the signing page in a window over your site. You can also call MyESign.open(url).

  4. 4

    Listen for the events myesign:open, myesign:signed, myesign:declined and myesign:close on the button or on window.

Tip: The link of a signer on the link channel does not change when the previous signer finishes, so the URL you stored keeps working.

Still need help?

Our team answers by ticket and email.