Adding Page Name and URL to an Email in Divi Form Builder
Introduction
This guide will help you add the page name and URL to the emails generated by the Divi Form Builder.
Step 1: Add Hidden Fields
- In your form, add two Hidden fields.
- Assign one hidden field to capture the URL and the other to capture the Page Name. For the URL field, set the field to automatically capture the current page URL. For the Page Name field, set the field to automatically capture the current page title.
For more information on how to use hidden fields click HERE.
Step 2: Add the IDs of Both Hidden Fields to the Email
- Go to your Email Confirmation and Email Notification settings.
- Add the IDs of the Hidden fields created in Step 1 to the email body where you want the Page Name and URL to appear.
- Use the format %%field_id%% where field_id is the ID of your hidden fields. For example, if your URL field ID is page_url, use %%page_url%% to insert the URL into your email.
For more information on email notification and confirmation click HERE and HERE.
Additional Tips
This setup ensures that every time the form is submitted, the email sent will include the page name and URL where the form was filled out, providing valuable context to the email recipient.