The embed URL of where the form is submitted from is already captured with the form submission and available in the right sidebar when viewing an entry.
If you want this information to also populate a hidden field on your form so that it's included with the form fields but the user doesn't see it... that is easy to do.
- Add a Hidden Field to your form
- Edit the Hidden Field and give it a field label of whatever you want to call this "RV Name" for instance
- Select the Advanced tab when editing the Hidden Field
- For the Default Value select "Embed Post/Page Title"
- It will insert the merge tag for this into the Default Value
- See this screenshot: http://i.imgur.com/XuIdI.png
- Save your form
This will now save the post title as a hidden field on your form automatically.
There are all sorts of merge tags available when populating a default value like this. A few of them are available in the drop down and then there are more advanced options for inserting the value of user data as well as post custom field data.
Merge tags are documented here:
http://www.gravityhelp.com/documentation/page/Merge_Tags
The easiest way to get to know some of these features is just to create some test forms and play around with it.
Posted 13 years ago on Wednesday October 12, 2011 |
Permalink