How to Install and Use WordPress Contact Form 7 Plugin

Weronika Masternak
5 min read
updated: Mar 11, 2024

Contact Form 7 is a free WordPress plugin that allows you to manage multiple contact forms, providing you with the flexibility to easily customize both the form and email contents using straightforward markup. The form boasts features like Ajax-powered submissions, CAPTCHA integration, Akismet spam filtering, and more.

You can find a comprehensive guide, docs, FAQs, and more detailed information about Contact Form 7 on contactform7.com.

How to configure Contact Form 7 with your WordPress pageLink icon

If you want to create and add your contact form, go to the “Plugins” and click on the “Add New” button.

Going to “Plugins” in the WordPress account.

Clicking on the “Add New” button in the “Plugins” settings in the WordPress account.

Find Contact Form 7 in the list of plugins. Then, install and activate it for your WordPress account. 

Contact Form 7 on the plugins list.

Contact Form 7 plugin will appear in the list. Here, you can click “Settings” and prepare the contact form according to your needs.

Tailoring Contact Form 7.

Next, add a new contact form by clicking the “Add New” button.

Adding a new contact form by clicking the “Add New” button.

How to customize WP Contact Form 7 plugin for your HelpDeskLink icon

Customize step by step your contact form with the possible options.

Start with the Form panel. Here, add all the details in the HTML form, as in the example below.

Form panel in Contact Form 7.

You can see the details below:

    [text singleline-text]

    [textarea multiline-text]

    [url link-url]

    [date date]

These are called HelpDesk custom fields.

Custom fields are ideal for storing extra data related to tickets, requesters, and organizations within the ticket details, such as order number, order specifics, contact ID, requester’s website, delivery date, credit card information, social security details, requester’s age, shipping address, deal value, and more.

Creation of custom fields in HelpDeskLink icon

Go to the “Settings” section and click on the “Custom fields” category. 

Here, click on the “Create custom field” button.

Creation of the custom field in HelpDesk.

Customize HelpDesk custom fields according to your preferences and needs.

Customization of the custom field in HelpDesk.

Take a look at the API key name — you’ll need it to create Contact Form 7 in the Form and Mail panels in the CF 7 settings.

Custom fields on the list in HelpDesk.

Once you’re done creating HelpDesk custom fields, go back to your WordPress account.

Contact Form 7 tutorial: Specifying the Form panelLink icon

Let’s take a look at the details of a sample contact form in the Form panel.

Form panel in Contact Form 7.

In the following section, you can spot some bolded custom field type defined in HelpDesk during the custom field creation process: 

    [text your-name autocomplete:name] *

    [email your-email autocomplete:email] *

    [text your-subject] *

````

    [text singleline-text]

    [textarea multiline-text]

    [url link-url]

    [date date]

[submit “Send”]

The overall content of the Form panel of the contact form is up to you.

Remember to save changes.

Specifying the Mail panel in Contact Form 7Link icon

Let’s take a look at the details of a sample contact form in the Mail panel, according to Contact Form 7 docs.

Mail panel in Contact Form 7.

Below, you’ll find an explanation of each field in the Mail panel to make your contact form work.

ToLink icon

Set the recipient email address here. Use your HelpDesk forwarding address that you’ll find in the “Settings” section in the “Email” category.

Dedicated HelpDesk forwarding address.

You can use mail-tags in this field.

Specify values in the valid mailbox syntax, or you’ll get a configuration error.

FromLink icon

Set the sender’s email address here. You can use mail-tags in this field.

This field value should be an email address that belongs to the same domain as the website. Otherwise, you’ll get a configuration error.

SubjectLink icon

Set the subject of the message here. You can use mail-tags in this field.

Additional headersLink icon

Place custom field headers and keep the following format: X-HelpDesk-CF-   

Reply-To: [your-email]

X-HelpDesk-CF-productName: [singleline-text]

X-HelpDesk-CF-details: [multiline-text]

X-HelpDesk-CF-productUrl: [link-url]

X-HelpDesk-CF-dateOfOrder: [date]

productName, details, productUrl, and dateOfOrder are API key names that you can copy and paste here from the custom field settings in HelpDesk.
productName, details, productUrl, and dateOfOrder are API key names that you can copy and paste here from the custom field settings in HelpDesk.

You can insert additional message header fields here, such as Cc and Bcc. There should be one field per line. You can embed mail-tags anywhere in these fields.

Message bodyLink icon

This is the message body; you can embed mail-tags anywhere in this field.

Define it to your needs, such as:

Sender: [your-name] [your-email]

Subject: [your-subject]

Product name: [singleline-text]

Details: [multiline-text]

Product URL: [link-url]

Date of order: [date]

-- 

This is the notification for submitting a contact form on the website ([_site_title] [_site_url]).

[singleline-text], [multiline-text], [link-url], and [date] are custom field formats that you can select when creating a custom field in HelpDesk.
[singleline-text], [multiline-text], [link-url], and [date] are custom field formats that you can select when creating a custom field in HelpDesk.

If you select the Exclude lines with blank mail-tags from the output checkbox, lines, including mail-tags that have empty values, will be excluded from the message body of the actual email output.

By default, plain text is used for the message body. To use HTML, select the Use HTML content type checkbox.

The overall content of the Mail panel of the contact form is up to you.

Remember to save changes.

Saving Contact Form 7 changes.

Contact Form 7 installation on your WordPress pageLink icon

First, create a page for your contact form. Go to “Pages” and click on the “Add New” button in your WordPress account.

Adding new page in WordPress account.

Give it a proper headline and add the necessary content, then insert a block named “Shortcode” to paste the contact form. 

Inserting “Shortcode.”

The “Shortcode” inserted.

Now, copy and paste the shortcode of your newly created contact form.

Copying and pasting the “Shortcode.”

The “Shortcode” copied and pasted.

Then, click the “Update” button and test the contact form on your website.

Testing the contact form.

If everything’s configured well, the test should result in a new HelpDesk ticket filled with custom fields (if you previously set them up).

New ticket from Contact Form 7.

Was this article helpful?

Got it!

Thanks for your feedback.

Thank you!

We’re happy to help.

RELATED ARTICLES

Contact form for your website

Learn how to create a contact form and embed it on your website.

Read the article

Try HelpDesk today

Invite your team and explore HelpDesk features for free

Free 14-day trial Simple setup

Discover our text| products