Signature Field With Contact Form 7

外掛說明

Signature Field With Contact Form 7 is a free WordPress plugin that adds a handwritten digital signature field to any Contact Form 7 form. Using a smooth HTML5 canvas-based signature pad, visitors can draw their signature with a mouse, stylus, or finger — exactly as they would on paper.

When the form is submitted, the signature is automatically converted to a PNG image, saved securely to your server, and the image URL is passed through Contact Form 7’s mail system so it can be included in your email notifications.

Whether you need client sign-off on a service agreement, a consent signature on a medical intake form, or a simple acknowledgement on a registration form, this plugin gives you a professional, self-hosted e-signature solution that works inside the familiar CF7 interface — with no external services, no subscriptions, and no coding required.

Requires Contact Form 7 to be installed and activated.

Documentation | Live Demo | Get Pro Version

Why Use Signature Field With Contact Form 7?

Contact Form 7 does not include a signature field by default. This plugin fills that gap by registering a native [digital_sign] tag directly inside the CF7 tag generator — the same familiar interface you already use for text fields, dropdowns, and checkboxes. Configure your signature pad visually, click “Insert Tag”, and you are done.

Unlike third-party e-signature services, the captured signature is processed and stored entirely on your own WordPress server. No data leaves your site, no accounts are required, and there are no per-signature fees.

FREE Features

  • Digital Signature Pad — Embed a smooth, responsive HTML5 canvas signature pad into any Contact Form 7 form. Visitors draw their signature using a mouse on desktop, or their finger or stylus on touchscreen devices.

  • CF7 Tag Generator Integration — Configure the signature field entirely through the Contact Form 7 tag generator panel. No shortcode editing or PHP required.

  • Required Field Validation — Mark the signature field as required. CF7 will block form submission and display a validation error if the visitor tries to submit without drawing a signature.

  • Custom Pad Background Color — Set the background color of the signature canvas to any color using the built-in color picker (default: light grey #dddddd). Match it to your form design or brand palette.

  • Custom Pen Color — Choose the ink color the visitor’s drawn signature will appear in using the color picker (default: black #000000).

  • Custom Pad Width — Set the exact pixel width of the signature canvas to fit any column layout or form design (default: 300px).

  • Custom Pad Height — Set the exact pixel height of the signature canvas (default: 200px).

  • Custom Pen / Stroke Width — Control the thickness of the pen stroke to create a natural handwriting feel. Thinner strokes suit precise signatures; thicker strokes suit casual sign-offs (default: 2px).

  • Clear / Reset Button — A built-in clear button lets visitors erase their signature and start again without reloading the page.

  • Customizable Clear Button Text — Change the label of the clear button to any text you choose — useful for different languages or tone preferences (default: “Clear”).

  • Signature Saved as PNG Image — On form submission, the drawn signature is automatically converted from the canvas into a PNG image file and saved securely inside a dedicated folder in your WordPress uploads directory (/wp-content/uploads/wpcf7_uploads/sfwcf7_signatures/).

  • Secure Server-Side File Handling — The signature directory is automatically created with a .htaccess file that restricts direct access while still allowing the PNG files to be served when referenced by their URL. File names are sanitized and made unique using a timestamp to avoid collisions.

  • Email Delivery via Mail Tag — After submission, the signature image URL is passed into the CF7 posted data. Add the corresponding mail tag (e.g. [your-signature]) to the CF7 Mail tab to include a link to the captured signature image in your email notifications.

  • Custom HTML ID and Class — Assign a custom id and/or class attribute to the signature field wrapper for easy CSS overrides or JavaScript targeting.

  • Touch and Stylus Support — The signature pad responds to touchstart and touchend events, making it fully usable on smartphones, tablets, and stylus-enabled devices.

  • Lightweight Footprint — Scripts and styles are enqueued only on pages that contain a Contact Form 7 form, keeping your site fast on all other pages.

  • Automatic CF7 Dependency Check — If Contact Form 7 is not installed or activated, the plugin automatically deactivates itself and displays an admin notice rather than generating errors.

🔒 Pro Version Features

The following feature is locked in the free version and is only available in the Pro (Premium) version of Signature Field With Contact Form 7.

👉 Upgrade to Pro

Multiple Signature Pads Per Form
In the free version, only one [digital_sign] field is active per form. If you insert a second signature field, it is replaced by an upgrade notice rather than rendering a second pad. The Pro version removes this restriction entirely, allowing you to add as many independent signature fields as your form requires — ideal for contracts that need signatures from multiple parties (e.g. client + witness + authorising manager), multi-step agreement forms, or any document requiring more than one distinct sign-off.

How It Works

  1. Install and activate the plugin (Contact Form 7 must already be active).
  2. Open any Contact Form 7 form in the editor.
  3. Click the digital_sign button in the tag generator toolbar.
  4. Set your preferred options — pad size, background color, pen color, pen stroke width, and clear button text.
  5. Click Insert Tag — the [digital_sign] shortcode is added to your form.
  6. Go to the Mail tab and add the corresponding mail tag (e.g. [your-field-name]) to your email body to include the signature image URL in notifications.
  7. Save the form. The signature pad will appear on your site immediately.

Perfect For

  • Client onboarding agreements and service contracts
  • Medical consent forms and patient intake documents
  • Legal acknowledgements and NDAs
  • School or event permission slips
  • Employee, volunteer, or contractor agreements
  • Rental or booking confirmation forms
  • Any form that benefits from a personal handwritten sign-off

螢幕擷圖

安裝方式

Option 1 — WordPress Plugin Directory (Recommended)

  1. Go to your WordPress dashboard Plugins Add New.
  2. Search for Signature Field With Contact Form 7.
  3. Click Install Now, then Activate.

Option 2 — Manual Upload

  1. Download the plugin .zip file.
  2. Go to Plugins Add New Upload Plugin.
  3. Choose the .zip file and click Install Now, then Activate.

After Activation

  1. Make sure Contact Form 7 is already installed and active. If it is not, the plugin will deactivate itself and display an admin notice.
  2. Open any CF7 form in the editor.
  3. Click Add Form Tag and choose digital_sign.
  4. Configure your options in the tag generator and click Insert Tag.
  5. Add the mail tag to your Mail tab if you want the signature included in email notifications.
  6. Save the form.

常見問題集

Does this plugin require Contact Form 7?

Yes. Signature Field With Contact Form 7 is an add-on for Contact Form 7. If CF7 is not installed and activated, this plugin will automatically deactivate itself and show an admin error notice.

How is the signature captured and stored?

When a visitor draws their signature and submits the form, the HTML5 canvas content is converted to a Base64-encoded PNG image on the client side. On form submission, the plugin decodes that image server-side and saves it as a .png file inside /wp-content/uploads/wpcf7_uploads/sfwcf7_signatures/. A .htaccess file is created automatically in that folder to protect it from unauthorized directory browsing.

Will the signature appear in the CF7 email notification?

Yes. After submission, the plugin replaces the raw Base64 data in the posted form data with the URL of the saved PNG file. Add the signature field’s mail tag (e.g. [your-signature]) to the body of your CF7 email template and the URL to the signature image will be included in the notification.

Can I make the signature field required?

Yes. Check the “This is a required field” checkbox in the tag generator when creating the field. CF7 will then block form submission and display a validation message if the visitor submits without drawing a signature.

Can I change the size and colors of the signature pad?

Yes. The tag generator includes dedicated fields for pad width, pad height, background color, pen color, and pen stroke width. All of these are set per-field and stored inside the form tag, so different forms (or different fields on the same form) can have different configurations.

Can I change the text on the Clear button?

Yes. The “Clear Text” field in the tag generator lets you set any label for the clear/reset button. This is useful for non-English sites or to match your form’s terminology.

Can I add more than one signature field to a single form?

Adding multiple signature pads to one form is a Pro version feature. In the free version, only the first [digital_sign] field on the page renders as a working signature pad. Any additional signature fields display a message prompting you to upgrade to Pro. Get the Pro version here.

Does the signature pad work on mobile and tablet devices?

Yes. The signature pad listens for touch events (touchstart, touchend) in addition to mouse events, so it works on smartphones and tablets. Visitors can draw their signature with a finger or capacitive stylus.

Where is the documentation?

Full setup documentation is available at topsmodule.com.

Where can I see a live demo?

Visit the live demo at topsmodule.com/task/signature-field-with-contact-form-7/.

使用者評論

2024 年 2 月 1 日
Does not work in wp 6.4.3 and also support seems to be unavailable. I had to deactivate and delete it.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Signature Field With Contact Form 7〉的開發相關工作。

參與者

〈Signature Field With Contact Form 7〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Signature Field With Contact Form 7〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Initial release.
  • [digital_sign] form tag registered with the Contact Form 7 tag generator.
  • HTML5 canvas-based signature pad with touch and mouse support.
  • Configurable pad background color, pen color, pad width, pad height, and pen stroke width.
  • Customizable clear/reset button with editable label text.
  • Required field validation — blocks CF7 submission if no signature is drawn.
  • Custom HTML ID and class support.
  • Automatic server-side PNG image generation from canvas Base64 data on form submission.
  • Signature files saved to /wp-content/uploads/wpcf7_uploads/sfwcf7_signatures/ with auto-created .htaccess protection.
  • Signature image URL passed into CF7 posted data for use in mail tags.
  • Scripts and styles enqueued only on CF7 pages for minimal performance impact.
  • Automatic plugin deactivation with admin notice if Contact Form 7 is not installed.