Today, I want to show you how to customize the confirmation message in Gravity Forms so that you can personalize it with the user’s name or any other form entry data. This small touch can enhance the user experience on your website by making the confirmation message feel more personalized.
Step 1: Set Up Your Gravity Form
For this tutorial, I’ve set up a demo contact form using Gravity Forms on my site. The form includes fields for the user’s first name, last name, phone number, email, and a message. Our goal is to display a personalized confirmation message when the form is submitted, such as “Thank you, Adam! We’ll be in touch soon.”
Step 2: Access Confirmation Settings
- Go to your Gravity Forms dashboard and navigate to the contact form you’ve created.
- Click on Settings and then Confirmations.
- Select the Default Confirmation or create a new one if needed.
Step 3: Customize the Confirmation Message
By default, Gravity Forms provides a generic confirmation message like “Thanks for reaching out.” To personalize this, you can pull in the user’s name using merge tags.
- In the confirmation message editor, write your message. For example:
Thank you,
- To insert the user’s first name, click on the Merge Tag button (the curly brackets) next to the “Add Media” button.
- Select Name (First) from the list of fields.
- Complete your message, such as:
Thank you, {Name (First)}! We’ll be in touch within two business days.
- You can style the message using HTML tags, such as wrapping the message in an
<h2>
tag and centering it using the<center>
tag.
Step 4: Test the Confirmation Message
Now that you’ve customized the confirmation message, it’s time to test it.
- Fill out your form with some dummy data, such as:
First Name: Adam, Last Name: W, Email: example@example.com
- Submit the form.
- The confirmation message should display:
Thank you, Adam! We’ll be in touch within two business days.
Step 5: Display All Submitted Data (Optional)
If you want to go a step further, you can display all the data the user submitted in the confirmation message.
- Edit your confirmation message again.
- Include a line like:
Thank you, {Name (First)}! Here’s a copy of your submission:
- Use the merge tag {All Submitted Fields} to display all the form data.
For example, your confirmation message might look like this:
<h2>Thank you, {Name (First)}!</h2>
<p>Here’s a copy of your submission:</p>
<p>{All Submitted Fields}</p>
- Save your changes and test the form again.
Additional Tips
- If you want to insert personalized data into a custom page built with the block editor or a page builder, Gravity Forms doesn’t support this out of the box. You’ll need a third-party plugin like Gravity Wiz or GravityView to achieve this.
- Always take the time to customize your thank you message. It adds that extra touch that can enhance the user experience on your site.
That’s how you can customize the confirmation message in Gravity Forms to include user data. It’s a simple yet powerful way to create a more engaging and personalized experience for your visitors.