WP Manifestindependent plugin directory
manifest / forms / cf7-form-auto-class

CF7 Form Auto Class

Add form slug as a CSS class to the Contact Form 7 output.

★ 0stars
16release downloads
1.0.0latest · 3 years ago

Install

Download cf7-form-auto-class.zip From the 1.0.0 release on GitHub, Mar 17, 2023

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/robwent/cf7-form-auto-class/releases/download/1.0.0/cf7-form-auto-class.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Contact Form 7 Auto Class

When using HubSpot and other CRMs to track native form submissions, the forms are identified by their class name.
By default, all cf7 forms will show up as ".wpcf7-form, .init".

There is an attribute that can be added to the shortcode used to embed the form html_class="my-custom-class".

This plugin checks to see if the html_class attribute has been used, and if not, adds the slug of the form title.

All of your forms will then be separated out in the CRM so you can easily identify which form each submission came from.

Releases

1 release. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
1.0.0 latest
Mar 17, 2023 3 years ago
cf7-form-auto-class.zip
16