Jul 092022
 

How To Insert Custom Tags WP Contact Form 7 post shows you how to set up and insert new form tags to your contact form.

Last Updated: July 10, 2022

Latest News: Updated the documentation.

In this tutorial you will learn how to insert two new tags into the form template. The following 2 tags date and drop-down-menu will be inserted into a simple contact form for a driving school site.

These instructions are very simple to follow.

Note: These steps can be used to insert other form tags.

What you need:

Contact Form Tutorial List:

Recommended Plugins/Extensions

How To Insert Custom Tags WP Contact Form 7

Step 1 ) Go to Contact -> Contact Forms as illustrated in the image below.

wp-contact-form-7-admin-menu

Step 2 ) Click on Form tab as illustrated in the image below. The following image shows you the date and drop-down-menu tags highlighted in red. These tags will be inserted in the form template.

wp-contact-form-7-form-template-tags

Drop Down Menu Tag

Step 3 ) Click on drop-down-menu tag, the following window pops-up as illustrated in the image below. You can configure the following options.

Form Tag drop-down-menu Options:

  • Field type
  • Name = I left the name as default added by the plugin. You can choose your own name.
  • Options = In this example I added two options, Manual Car and Automatic Car. Each entry is added to a line.
  • Allow multiple selections
  • Insert a blank item as the first option
  • Id attribute
  • Class attribute
  • Click on Insert Tag button when you are ready to insert the tag into the form template.

wp-contact-form-7-drop-down-menu-template-form-tag

 

Step 4 ) The following image display the drop-down-menu tag inserted into the form template and displayed in the contact form.

wp-contact-form-7-dropdown-menu-displayed

Step 4-a ) The following image display the drop-down-menu tag inserted into the form template and displayed in the contact form. In this example I typed in the word (Required) in the label. I also checked Insert a blank item as the first option. This adds 3 dashes to the menu as illustrated in the top part of the image below. The bottom part of the image shows the dropdown menu expanded with the 3 dashes an the two type of cars available for selection. This options looks more professional and makes more sense than the example in the image in Step 4 ) above.

wp-contact-form-7-drop-down-menu-displayed-option2

Date Tag

Step 5 ) Click on the date tag, the following window pops-up as illustrated in the image below. You can configure the following options.

Form Tag date Options:

  • Field type = Make sure this field is also checked. The date is required for a driving school site.
  • Name = I left the name as default added by the plugin. You can choose your own name.
  • Default value
  • Range
  • Id attribute
  • Class attribute
  • Click on Insert Tag button when you are ready to insert the tag into the form template.

wp-contact-form-7-date-template-form-tag

 

Step 6 ) The following image display the drop-down-menu tag inserted into the form template and displayed in the contact form.

wp-contact-form-7-date-tag

Step 7 ) The following link create-a-custom-form-using-wp-contact-form-7 illustrates the contact form completed and displayed in the site.

==============================

That’s how simple it is to duplicate an existing form to create a new contact form in your site using Contact Form 7 plugin.

If you have any questions please let me know.

Enjoy.

I have been working in IT since 1999 and I enjoy the challenges it brings me. I love developing websites with WordPress. I spend a lot of time helping out in wordpress.org forums. I have been writing tutorials since 2011. Now I am learning how to manage my own VPS "Virtual Private Server.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

seventeen − fourteen =