UniqueID for Contact Form 7


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.


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);


  • The field generator
  • The add field button


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.


شتنبر 16, 2020
Unique ID doesn't work/increment. Every time I submit a form, it keeps displaying the same submission ID Starting number.
شتنبر 10, 2020
Thanks for a great plugin, this works perfectly well for me, just what I needed! Keep up the great work 🙂
يوليوز 14, 2020
I tried adding it and Critical security error happened on My WordPress Site. I have to go through Recovery Mode and delete the Plugin. """ When seeking help with this issue, you may be asked for some of the following information: WordPress version 5.4.2 Current theme: WP Store (version 1.1.5) Current plugin: Contact Form 7 - Submission id (version 2.1.0) PHP version 7.4.7 Error Details ============= An error of type E_ERROR was caused in line 16 of the file /home/cloudmat/apexpolymerspackaging.com/wp-content/plugins/cf7-submission-id/cf7-submission-id.php. Error message: Uncaught Error: Call to undefined function wpcf7_add_form_tag() in /home/cloudmat/apexpolymerspackaging.com/wp-content/plugins/cf7-submission-id/cf7-submission-id.php:16 Stack trace: #0 /home/cloudmat/apexpolymerspackaging.com/wp-includes/class-wp-hook.php(287): cf7_submission_id_init('') #1 /home/cloudmat/apexpolymerspackaging.com/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /home/cloudmat/apexpolymerspackaging.com/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/cloudmat/apexpolymerspackaging.com/wp-settings.php(403): do_action('plugins_loaded') #4 /home/cloudmat/apexpolymerspackaging.com/wp-config.php(90): require_once('/home/cloudmat/...') #5 /home/cloudmat/apexpolymerspackaging.com/wp-load.php(37): require_once('/home/cloudmat/...') #6 /home/cloudmat/apexpolymerspackaging.com/wp-admin/admin.php(34): require_once('/home/cloudmat/...') #7 /home/cloudmat/apexpolymerspackaging.com/wp-admin/plugins.php(10): require_once('/home/cloudmat/...') """
Read all 8 reviews

Contributors & Developers

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




  • Not dependent on jQuery anymore
  • Only increments on success


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


  • only load js when needed


  • bugfix when no id field in contact form


  • Bug fix to take initial value into account


  • Bug fix to be compatible with CF7 5.2 and higher


  • Bug fix for new forms


  • Only update id on succesfull form submission, not on reload of the screen
  • BREAKING CHANGE: name should contain “submission_id”


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


  • Wait 5 deconds instead of 3 before reloading the page


  • Small bufix


  • Small bufix


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


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


  • Initial release