Menu
All plugins

Signature Field for Bricks Forms

Adds a signature pad to the Bricks Form element. Visitors draw their signature with a finger, stylus or mouse, or type their name. It is saved as a PNG image, attached to notification emails and handed to every form action as a link.

Version: 0.1.0   Demo: Signature Field demo

Adding it

In a Form element, add a field, leave its type as Text and switch on Signature pad. Give it a label and tick Required if the signature must be given. The settings below appear once it is on.

Settings

  • Signature box height, ink colour and pen thickness.
  • Hint inside the box (Sign here by default) and an option to hide the signature line.
  • Let visitors type their name instead: adds a Draw and Type choice. The typed name is drawn in a script style. This is the accessible alternative for people who cannot draw, and for anyone on a keyboard.
  • White background in the image: otherwise the image is transparent.
  • Attach the image to notification emails, or send a link only.
  • Delete the image after (days): a daily clean-up removes the file once its time is up. 0 keeps it.
  • Clear button text.

What the form actions receive

Before any action runs, the signature is checked, saved to uploads/nl-signatures under a random file name, and the field’s value becomes the image address. That means {{field_id}} works anywhere Bricks accepts form fields:

  • In an email, write <img src="{{field_id}}" width="300"> or just use the address as a link. The image is also attached automatically.
  • In a webhook, create post or custom action, the value is the address.
  • In the success message, an img tag with the address shows the signature back to the visitor.

Checks and safety

  • Required is checked in the browser and again on the server. A blank pad, an invalid image or an oversized image counts as no signature.
  • Only a real PNG up to 2400 by 1200 pixels is accepted.
  • The file name is random and cannot be guessed. Anyone with the address can open the image, so set a deletion time if you do not need to keep it.

Good to know

  • The pad clears when the form is reset after a successful submit.
  • It works in multi-step forms and other fields’ conditions see the field as filled once signed.
  • A signature on a form is a record of agreement. Whether it is legally binding depends on your situation, so take advice if it matters.