Then the hidden field should be populated with the value when the form is posted back and you can see where it originated.
For example, I think the magic string: [@url] would capture the url of the page the form was submitted on and [#pageName] would capture the name of the Umbraco node whichever is more useful.
Form comments submitted by user - how can you check which page it was submitted from
Hi,
we have news stories and under each is a form to allow user comments.
When the user submits a comment it can then be approved in the back office.
There are many news articles so how can you tell which page the comment came from? Can the database be queried for this?
Thanks
Hi Damon
If you add a 'hidden field' to the form, in the form designer, and set a default value to be a 'magic string' see
https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Magic-Strings/
Then the hidden field should be populated with the value when the form is posted back and you can see where it originated.
For example, I think the magic string: [@url] would capture the url of the page the form was submitted on and [#pageName] would capture the name of the Umbraco node whichever is more useful.
regards
marc
is working on a reply...