This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

UniqueID for Contact Form 7

Description

Plugin for Contact Form 7: adds a field for an unique submission id.
You can choose to include a hidden or an visible field to your form.
This field will be automatically filled with an number which is incremented on every submission.

Usage

Just add the field to your form.

You can filter the value using the cf7_submission_id_filter.
To add leading zeros for example, just put the code below in your functions.php

add_filter('cf7_submission_id_filter', 'custom_cf7_submission_id_filter');
function custom_cf7_submission_id_filter($val){
    return sprintf("%04d", $val);
}

Screenshots

  • The field generator
  • The add field button

Installation

Installing UniqueID for Contact Form 7 can be done either by searching for โ€œUniqueID for Contact Form 7โ€ via the โ€œPlugins > Add Newโ€ screen in your WordPress dashboard, or by using the following steps:

  1. Download the plugin via WordPress.org.
  2. Upload the ZIP file through the โ€œPlugins > Add New > Uploadโ€ screen in your WordPress dashboard.
  3. Activate the plugin through the โ€˜Pluginsโ€™ menu in WordPress
  4. Visit the settings screen and configure, as desired.

Reviews

โ„๏ธ1๏ธโƒฃ 20, 2022
This plugin work's fine, be sure to be submitting the form without /#wpcf7-f650-p652-o1 appended to the URL since this will not be classed as a new form submission and won't increment the submission ID. i.e the same person is not going to fill out the form twice if they do the ID's will be the same. I've installed and tested this and it works fine as long as you properly start a new form submission after the first submit...
โ„๏ธ1๏ธโƒฃ2๏ธโƒฃ 23, 2021
Using the "starting number" feature, I submitted several forms and the number never incremented. As many others have said, it simply didn't work. Don't use.
๐Ÿ‚ 9๏ธโƒฃ 26, 2020
this plugin doesnt work properly
๐Ÿ‚ 9๏ธโƒฃ 16, 2020 1 reply
Unique ID doesn't work/increment. Every time I submit a form, it keeps displaying the same submission ID Starting number.
๐Ÿ‚ 9๏ธโƒฃ 10, 2020 1 reply
Thanks for a great plugin, this works perfectly well for me, just what I needed! Keep up the great work ๐Ÿ™‚
Read all 10 reviews

Contributors & Developers

“UniqueID for Contact Form 7” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.4.0

  • Not dependent on jQuery anymore
  • Only increments on success

2.3.0

  • Bugfix when submitting multiple forms at the same time
  • Added the cf7_submission_id_filter

2.2.5

  • only load js when needed

2.2.1

  • bugfix when no id field in contact form

2.2.0

  • Bug fix to take initial value into account

2.1.0

  • Bug fix to be compatible with CF7 5.2 and higher

2.0.1

  • Bug fix for new forms

2.0.0

  • Only update id on succesfull form submission, not on reload of the screen
  • BREAKING CHANGE: name should contain โ€œsubmission_idโ€

1.4.0

  • No reload of the page needed anymore, refresh is done via AJAX

1.3.0

  • Wait 5 deconds instead of 3 before reloading the page

1.2.2

  • Small bufix

1.2.1

  • Small bufix

1.2.0

  • Added a 3 seconds delay before the auto-reload takes place

1.1.0

  • Fixed bug where page is not reloaded when field is renamed.

1.0.0

  • Initial release