Description
Contact Form 7 plugin allows editing forms with a standard textarea. This addon adds an HTML editor with code highlighter to each contact form and provides many useful options to enhance your forms.
Editor Features
- HTML Editor with syntax highlighting powered by CodeMirror
- Contact Form 7 form-tags highlighting – types, names, options and values of tags like [text* your-name]
- Autocomplete – type [ to insert a form-tag; HTML tags and attributes with Ctrl+Space
- Mail editor – highlighting and mail-tag autocomplete in Mail and Mail (2) message bodies
- Fullscreen mode (F11) and Dark Theme (Material), remembered for each user
- Auto-close brackets and tags, line numbers, search (Ctrl+F)
- Changes in the editor run the Contact Form 7 configuration validator
Form Options (the “Extras” tab of the form editor)
- Test Mode – The form is visible only to users who can edit it; submissions from visitors are rejected
- Submission Limit – Close the form after N sent submissions (with counter and reset)
- Schedule – Open and close the form at a set date and time; the “closed” text is editable in the Messages tab
- Redirect After Submit – Redirect users to a URL after successful submission
- Form fields in the URL, e.g. https://example.com/thanks?name=[your-name]
- Support for ACF fields to get dynamic redirect URL from current page
- Option to open redirect URL in new tab
- Option to force file download
- Hide Form After Submit – Hide the form and show only success message
- Auto-hide Success Message – Automatically hide success message after specified seconds
- GA4 / GTM Event – Send an event to GTM dataLayer or GA4 gtag.js on successful submission
- Remove Auto Tags – Disable automatic p and br tags (tags written in the editor are kept)
- Disable Submit Button – Prevent double submissions by disabling button during form submission
- Scroll to Message – Automatically scroll to the response message after form submission
- Remove Refill – Clear form fields after validation error (error messages stay visible)
- Pre-fill Fields from URL – Auto-fill form fields from URL parameters (e.g., ?your-email=test@example.com)
- Custom CSS – CSS for a single form with the {form} selector placeholder, loaded only with the form
Spam Protection (no CAPTCHA)
- Honeypot – Hidden trap field filled in only by bots
- Time Check – Reject forms submitted faster than N seconds
Performance
- Conditional Script Loading – Load CF7 scripts and styles (including reCAPTCHA and Turnstile) only on pages with contact form shortcode. Contact → HTML Editor settings page.
To improve the plugin’s functions and add new functions, write to us on the support forum.
Support
Search for answers and ask your questions at forum or send requests on the github.
Installation
- Installation option 1: Find and install this plugin in the
Plugins->Add newsection of yourwp-admin - Installation option 2: Download the zip file, then upload the plugin via the wp-admin in the
Plugins->Add newsection. Or unzip the archive and upload the folder to the plugins directory/wp-content/plugins/via ftp - Press
Activatewhen you have installed the plugin via dashboard. - Go to
Contact Form
Screenshots
Changelog
1.1.0
- Added: highlighting of Contact Form 7 form-tags and mail-tags in the editor
- Added: autocomplete of form-tag types (type [) and mail-tags
- Added: code editor for Mail and Mail (2) message bodies
- Added: fullscreen mode; the dark theme is now saved per user
- Added: “Extras” tab with all form options (moved from the Status box)
- Added: settings page (Contact → HTML Editor) for the global option “Load scripts only on pages with a form”
- Added: spam protection – honeypot and time check
- Added: submission limit and schedule; “form closed” message in the Messages tab
- Added: form fields in the redirect URL (?name=[your-name])
- Added: custom CSS for each form
- Added: GA4 gtag.js support for the analytics event
- Improved: ‘Remove Auto tags’ disables CF7 automatic paragraphs instead of removing all p/br tags
- Improved: front-end options use one script file instead of inline scripts
- Improved: Test Mode rejects submissions from visitors; visible to users who can edit the form
- Improved: the editor uses the WordPress code editor settings and respects the “Disable syntax highlighting” profile option
- Improved: conditional script loading also covers Cloudflare Turnstile
- Fixed: auto-hidden success message did not appear again on the next submission
- Improved: hidden (Test Mode) and closed forms are not rendered at all, their scripts are not loaded
- Improved: the analytics event is sent before a same-window redirect (waits for GTM / gtag up to 1 second)
- Improved: relative redirect URLs (/thank-you/) are accepted
- Improved: an invalid value in the Extras tab is shown when saving instead of silently blocking the save
- Added: Test Mode, limits, schedule and custom CSS also work with the legacy [contact-form ID “Title”] shortcode
1.0.2
- Fixed: HTML editor (syntax highlighting) did not load on the edit form screen with Contact Form 7 6.2+ (new admin menu structure)
- Fixed: plugin settings were reset by the Contact Form 7 live configuration check (REST dry-run) and by REST API saves
- Fixed: plugin settings were not saved when creating a new form; settings are now also copied on Duplicate
- Fixed: form options did not work for shortcodes with a numeric ID or a title
- Fixed: submit button stayed disabled after spam/aborted/unaccepted responses
- Fixed: ‘Remove refill’ also removed the validation error messages
- Fixed: URL pre-filled values were lost when Contact Form 7 reset the form (page caching)
- Fixed: Test Mode still printed form scripts for non-administrators
- Improved: changes in the HTML editor now trigger Contact Form 7 configuration validation
- Improved: editor is refreshed when the Form tab becomes visible
1.0.1
- Fixed: if enable ‘Load scripts only on pages with shortcode’ recaptcha show only page with shortcode
- Fixed: option ‘Remove Auto tags p and br ‘
1.0
- Added: Redirect after submit with URL input
- Added: ACF field support for dynamic redirect URL
- Added: Open redirect in new tab option
- Added: Force download option for redirect URL
- Added: Hide form after submit (show only success message)
- Added: Disable submit button while sending to prevent double submissions
- Added: Pre-fill form fields from URL parameters
- Added: GA/GTM Event tracking on successful form submission
- Added: Scroll to message after form submission
- Added: Auto-hide success message with configurable timeout
- Added: Remove refill option (clear fields after validation error)
- Added: Conditional loading of CF7 scripts only on pages with shortcode
- Improved: Tag generator integration with CodeMirror editor
0.2
- Added: Dark theme support.
- Added: Vertical resize option for the editor.
0.1
- Initial release


