Overview
The Divi Contact Form Helper plugin by Pee-Aye Creative adds new dynamic message pattern tags to the Divi Contact Form module! Please note, this feature is very limited with just Divi, and our new custom options are impossible without our plugin, so we hope you enjoy this exciting feature! This guide will give you all the information you need about these new message pattern merge tags.
What Is The Divi Message Pattern?
The standard Divi Contact Form has a feature called Message Pattern that allows you to place dynamic data into the message that is sent from the form. This is based on the fields which are added to the form. The field ID is wrapped within two percentage symbols %% at the beginning and the end of it. By using this feature, you can customize the message layout in any way you want using these dynamic merge tags.
For example, if I add a field for “Message” then the message pattern would be %%message%%. Same for Name %%name%% and Email Address %email_address%%.
Our Divi Contact Form Helper also introduces many new message pattern merge tags that are not available otherwise in the regular module. Below is a list of the ones added by our plugin.
All Fields
If you want to automatically include all fields, you can use the all fields merge tag which will show the field label that you add in the module settings followed by the value entered in the form.
%%dcfh_all_fields%%
Form Related
Form ID
This merge tag will display the unique ID of the contact form where the entry is submitted.
%%dcfh_contact_form_id%%
Form Title
This merge tag will display the contact form title of the form where the entry is submitted. The form title is an optional setting in Divi to name your form and also show as a heading on the frontend above the form.
%%dcfh_contact_form_title%%
Entry Number
This merge tag will display the unique entry number of any new form saved to the database. By default, all forms saved to the database are automatically given an entry number.
%%dcfh_entry_number%%
Site Related
Site Name
This merge tag will display the site name, which can be helpful to know from which site the form is being submitted in case you are managing multiple websites.
%%dcfh_site_name%%
Site Tagline
Similar to the site name, this merge tag will display the tagline of the site where the form is being submitted.
%%dcfh_site_tagline%%
Site URL
This merge tag will display the URL link of the site where the form is being submitted.
%%dcfh_site_url%%
Site Login URL
This merge tab will display the URL link of the login page of the site where the form is being submitted.
%%dcfh_site_login_url%%
Site Admin Info
This merge tag will display the info about the administrator user of the site where the form is being submitted. To use this one, be sure to add the username of the site admin. This is convenient if you want to end the email with a signature.
%%dcfh_site_admininfo_[username]%%
Page Related
Post/Page ID
This merge tag will show the post or page ID from where the form is being submitted.
%%dcfh_post_id%%
Post/Page Title
This merge tag will show the post or page title from where the form is being submitted.
%%dcfh_post_title%%
Post/Page URL
This merge tag will show the post or page URL from where the form is being submitted.
%%dcfh_post_url%%
Referer URL
This merge tag will show the URL link of the page where the person visited just prior to reaching the page with the contact form. This is really great data to know how your call to actions are converting the visitor into taking action.Â
%%dcfh_referer_url%%
Submitter Related
Submitter ID
This merge tag will display the user ID of the person submitting the form.
%%dcfh_site_userinfo_id%%
Submitter Name
This merge tag will display the user name of the person submitting the form.
%%dcfh_site_userinfo_name%%
Submitter Email
This merge tag will display the email address of the person submitting the form.
%%dcfh_site_userinfo_email%%
Submitter Username
This merge tag will display the username of the person submitting the form.
%%dcfh_site_userinfo_username%%
Submitter Registered
This merge tag will display whether the person submitting the form is registered or not.
%%dcfh_site_userinfo_registered%%
Submitter IP Address
This merge tag will display the IP address of the person submitting the form.
%%dcfh_user_ip%%
Submitter Browser
This merge tag will display the browser information of the person submitting the form.
%%dcfh_browser%%
Submitter Operating System
This merge tag will display the operating system information of the person submitting the form.
%%dcfh_platform%%.
Meta Related
Date Submitted
This merge tag will display the date when the form is submitted.
%%dcfh_date%%
Time Submitted
This merge tag will display the time when the form is submitted.
%%dcfh_time%%
URL Parameters
This merge tag will display the data from your own URL query parameters. You can use as many as you need.
%%yourparameter%%