Skip to content
This repository has been archived by the owner on Jun 28, 2020. It is now read-only.

An addon to CF7 for adding handwritten signature to Wordpress forms

License

Notifications You must be signed in to change notification settings

leac/Contact-Form-7-Signature-Addon

 
 

Repository files navigation

Contact Form 7 Signature Addon

This piece of code is an addon to the famous Contact Form 7 Wordpress plugin. It brings a new field type to forms that allows users to submit an handwritten signature.

The plugin uses Szymon Nowak's great Javascript library (https://github.com/szimek/signature_pad).

Installation

This plugin requires the Contact Form 7 plugin.

  1. Upload plugin files to your plugins folder, or install using WordPress' built-in Add New Plugin feature
  2. Activate the plugin
  3. Edit a form in Contact Form 7
  4. Choose "Signature field" from the Generate Tag dropdown
  5. Follow the instructions on the page

If you want the signature image to be included in the body of your emails, just put an image tag which src attribute is set to be the content of your field, just like this : <img src="[your-signature-field]"/>

If you want the signature image to be sent as an attachment to the email, just follow these easy steps :

  1. add a "attachment" parameter to your field like this : [signature your-signature-field attachment]
  2. add the signature tag to the mail attachment section, like you would do for a file (see this tutorial) : [your-file][your-signature-field]

Your contact form needs to send HTML formatted messages for it to work properly, so don't forget to check the corresponding box at the bottom of your email settings.

Important note : Plugin scripts are loaded in the footer, so your theme MUST be using the wp_footer() template tag for the signature field to work properly.

For release notes and more, please check the Wordpress plugin repository

Notes

CF7 Version compatibility

This plugin was tested with CF7 versions down to 3.5. Use it with older versions at your own risk.

About

An addon to CF7 for adding handwritten signature to Wordpress forms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 83.5%
  • JavaScript 15.2%
  • CSS 1.3%