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!