Signing Form Form Builder

This component enables seamless integration of a signing form within any section of your website or application. It offers compatibility with JS+HTML, React, Vue, and Angular, providing you with versatile options for integration.

HTML + JavaScript
<!-- Include the Zignature embed script -->
<script src="https://cdn.zignature.io/js/form.js"></script>

<zignature-form
  id="zignatureForm"
  data-src="https://app.zignature.io/d/{{ template_slug }}"
  data-email="{{ signer_email }}">
</zignature-form>

<script>
  window.zignatureForm.addEventListener('completed', (e) => {
    console.log(e.detail)
  })
</script>
View LIVE DEMO

Related Guides

Embed document signing into web app with JavaScript

Attributes

data-src String required

Public URL of the document signing form. There are two types of URLs:

  • /d/{slug} — template form signing URL can be copied from the template page in the admin dashboard. Also template "slug" key can be obtained via the /templates API.
  • /s/{slug} — individual signer URL. Signer "slug" key can be obtained via the /submissions API which is used to initiate signature requests for a template form with recipients.
data-email String

Email address of the signer. Additional email form step will be displayed if the email attribute is not specified.

data-name String

Name of the signer.

data-role String

The role name or title of the signer.

Example: First Party
data-token String

JSON Web Token (JWT HS256) with a payload signed using the API key. JWT can be generated only on the backend.

Callbacks

init Event

Custom event triggered on initializing the form component.

document.querySelector('zignature-form').addEventListener('init', () => console.log('init'))
load Event

Custom event triggered on loading the form data.

document.querySelector('zignature-form').addEventListener('load', (e) => e.detail)
completed Event

Custom event triggered after form completion. The event detail contains the submission data including signed document URLs.

document.querySelector('zignature-form').addEventListener('completed', (e) => e.detail)
declined Event

Custom event triggered after form decline. Only fires when data-with-decline is set to true.

document.querySelector('zignature-form').addEventListener('declined', (e) => e.detail)
Live Example

Interactive live preview of the Zignature embedded signing form. This is the actual embed component running from app.zignature.io.

https://yourapp.com/sign/contract