Dynamically add a hiden page URL to Gravity Forms

A new site i build lot of forms and i need for one category to have a way to know which post did i get this form from which is known as source of lead in order to do this u need to do this

1. In your forms editor, in the Standard Fields area, find the Hidden field and add it to your form.

hiddenfield

2. Click on the Advanced Tab, and use the Merge Tag dropdown to find “Embed Post/Page Title“. This will let you see what post or page people filled out the form on. If you also want to include the Post/Page URL to make it easy to visit the page from the notification, you can also use the “Embed URL“merge tag.

embedpostpage

3.Also, in the Advanced Tab, make sure to check the box next to “Allow field to be populated dynamically”

4.In the Properties tab, I would recommend using a descriptive title like “Lead came from page:” Since the field is hidden, only you will see this descriptive title.

Here’s how to modify the Notifications to include the new fields you created:

1.Go to Form Settings > Notifications and click on your Admin Notification.

2.Change the Notification Subject to: New submission from {form_title} from Page: {embed_post:post_title}
3.In the Notification itself, you can leave {all_fields} and it will contain the Page Title (and URL if you added it in the Hidden Field).
Now you can test your form and see which pages are generating the most leads. Enjoy!

Advertisements

4 thoughts on “Dynamically add a hiden page URL to Gravity Forms

  1. is there a way you can create a page through gravity forms and then send that dynamically generated URL page to the user through a notification e-mail?

Leave a Reply :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s