contact_mailContact Form 7errorerrorwarningvalidationdescriptioncontact-form-7codesyntaxlabelCommoncheck_circleEasy

Contact Form 7: Invalid form tag

When a visitor clicks Send, Contact Form 7 runs a tag parser. The parser checks every form tag for correct syntax and required attributes. If any tag fails the check, the submission stops and a red banner appears.

The parser rejects tags that lack opening or closing brackets, contain stray spaces, start with a number, or use disallowed characters such as colons or periods. It also flags tags that miss required options, duplicate HTML id values, or belong to a custom add‑on that is not registered with the current CF7 version.

The error message does not name a specific field. Instead it shows “(validation error) Invalid form tag.” The same text appears in the AJAX JSON response and in the WordPress debug log when debugging is enabled.

Symptoms

[dashicons-warning]
Red error banner
A red banner appears after clicking Send with the text “Invalid form tag.”
[dashicons-email]
No email received
The form does not send any email to the site owner.
[dashicons-admin-site]
AJAX response error
Network tab shows JSON containing "message":"(validation error) Invalid form tag."

Common Causes

Syntax mistakes
Missing brackets, stray spaces, or unbalanced quotes inside a tag.
Illegal tag name
Tag name starts with a number or includes prohibited characters.
Missing required attributes
A tag such as [select] lacks an options list or a required asterisk is omitted.
Duplicate HTML id
Two fields use the same id option, causing CF7 to ignore the id and mark the tag invalid.
Unregistered custom tag
A third‑party extension adds a tag that the current CF7 core does not recognize.
Need this fixed right now?

Don't waste your day debugging. Our experts can Fix your issues in under 2 hours.*

Success Rate

100% Guaranteed

Starting from

$35 /hour
99+

Trusted by Business Owners

“I spent 3 days trying to fix the Elementor loading loop. These guys fixed it in 20 minutes. Lifesavers!”

— Sarah J., Web Designer

Related Issues

contact_mail
Contact Form 7: REST API request failed: 503 Service Unavailable
A 503 Service Unavailable response stops Contact Form 7 from sending data...
apiREST APIerror503descriptioncontact-form-7
contact_mail
Contact Form 7: REST API request failed: 429 Too Many Requests

The form tries to send data through the WordPress REST API. The...

apiREST APIerrorerrorsecurityfirewalldescriptioncontact-form-7settingsserver_configuration
contact_mail
Contact Form 7: REST API request failed: 401 Unauthorized

The form tries to send data via the WordPress REST API. The...

apiREST APIadmin_panel_settingspermissionsdescriptioncontact-form-7lock401
contact_mail
Contact Form 7: File upload error: temporary directory missing

The error appears when Contact Form 7 cannot locate a writable temporary...

codePHPcloud_offupload erroradmin_panel_settingspermissionsdescriptiontemporary filedescriptioncontact-form-7
contact_mail
Contact Form 7: Mail (2) sending failed: PHP mail() function disabled

Contact Form 7 reports a failure for Mail (2) when the PHP...

codePHPerrorerrordescriptioncontact-form-7mailMailsettingsserver_configuration
contact_mail
Contact Form 7: Mail (2) sending failed: SSL certificate verification failed

Contact Form 7 reports a failure when trying to send the secondary...

errorerrorlocksslcodecURLdescriptioncontact-form-7