A contact form allows website visitors to send messages, ask questions, request information or submit enquiries without displaying your email address directly on the page.
A contact form is an online form that collects information from visitors and sends it to a configured destination, such as an administrator's email address or a form-submission database. The available features depend on the form plugin.
A visitor may use the form to ask about:
| Field | Purpose | Example |
|---|---|---|
| Name | Identifies the person contacting you. | Rahul Kumar |
| Provides an email address for replies. | rahul@example.com | |
| Phone | Collects a phone number when necessary. | Optional contact number |
| Subject | Describes the reason for the enquiry. | Course Information |
| Message | Allows the visitor to explain their request. | I want to know about the ADCA course. |
WordPress offers several plugins for creating contact forms. Compare their features, maintenance, compatibility and pricing before choosing one.
A contact form plugin that supports configurable forms and email notifications.
Suitable for: Basic contact and enquiry forms.
Provides a form-building interface with options that depend on the version and plan.
Suitable for: Users who prefer a visual form-building workflow.
Provides form creation and more advanced data-oriented features.
Suitable for: More complex forms and data workflows.
Offers form-building tools and various integrations depending on the plan.
Suitable for: Contact forms, enquiries and other form workflows.
For this example, we will use Contact Form 7. The same general process applies to many other form plugins, although their settings and form-building methods differ.
After installing a form plugin, create a form with the fields you need. Keep the form simple so visitors can complete it easily.
<label> Your Name
[text* your-name autocomplete:name]
</label>
<label> Your Email
[email* your-email autocomplete:email]
</label>
<label> Subject
[text your-subject]
</label>
<label> Your Message
[textarea your-message]
</label>
[submit "Send Message"]
This is an example of Contact Form 7 form markup. Add it in the form editor provided by Contact Form 7, not in the normal WordPress page editor.
| Form Tag | Meaning |
|---|---|
[text* your-name] |
Creates a required text field. |
[email* your-email] |
Creates a required email field. |
[text your-subject] |
Creates an optional text field. |
[textarea your-message] |
Creates a message text area. |
[submit "Send Message"] |
Creates the form's submit button. |
In Contact Form 7, the asterisk in tags such as
[text* your-name] indicates a required field.
Choose required fields carefully so you do not request
unnecessary information.
Email settings determine where form submissions are sent and what information is included in the notification.
After creating a form, place it on your Contact page so visitors can use it.
[contact-form-7 id="123" title="Contact form"]
This is only an example. Replace the ID and title with the shortcode generated for your actual form.
A form can appear correctly on a page but still fail to deliver messages. Always test both form submission and email delivery.
Public forms can receive unwanted or automated submissions. Use suitable protection while keeping the form accessible to genuine visitors.
| Problem | Possible Cause | What to Check |
|---|---|---|
| Email is not received | Mail configuration or server delivery issues. | Check spam folders, plugin messages and SMTP configuration. |
| Form does not submit | JavaScript errors, validation problems or conflicts. | Check browser errors and test plugin compatibility. |
| Spam submissions | Automated bots or public form abuse. | Review validation and supported anti-spam protection. |
| Form does not appear | Incorrect shortcode or editor placement. | Copy the correct shortcode and inspect the page. |
| Mobile layout looks broken | Theme styles or conflicting CSS. | Preview on mobile and inspect the relevant styles. |
Use a WordPress test or development website to complete these tasks:
Challenge: Create an enquiry form for Soopro Pathshala that asks visitors which course they are interested in, while collecting only the information needed to respond.
Choose the correct answer for each question.