How To Add A Hidden Field In Contact Form 7? (With Default Value)

Disclosure: Some of the links in this post are affiliate links. This means, if you click on the link and purchase the product, I will receive a commission at no additional cost to you. Don’t worry, I only recommend products or services that I have personally used and believe will add value to my readers.


At some point, you will want to add a hidden field to a form that you have created with Contact Form 7.

So, how do you do it?

Given below are the steps to add a hidden field in Contact Form 7:

1. Edit the form.

Go to Contact > Contact Forms page from the left-side menu in your WordPress Admin Panel. Then, edit the form on which you want to place the hidden field.

Edit Contact Form 7 form


2. Add the field to be hidden on the form.

Once you are on the Edit Contact Form page, add the field to the form that you want hidden. Don’t forget to set a default value to the field.

Add new field in Contact Form 7


3. Add hidden after opening bracket of the field.

Now, in the newly added field, write the word hidden after the opening bracket of the field’s form-tag.

For example, [hidden text new-field]

Hide Contact Form 7 field

Then, save the form.

And that’s it.

You have now added a hidden field with a default value to your form.

What’s Next?

You added a default value for the hidden field as a static value.

But, what if you want to set a default value dynamically when the form gets submitted?

In that case, refer these help docs from Contact Form 7:

You can also do a lot of other stuff with the Contact Form 7 plugin.

Here are some tutorials to help you get the maximum out of this plugin:

Video Tutorial

Download Website Builders’ Toolbox


Final Thoughts

I hope you liked this small tutorial.

If you found this tutorial useful, then please share it with your friends, I will really appreciate it.

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *