When adding a feedback form to a page there is now way to identify the page. One way to identify the page is to have a hidden field and populate it with the [current-page:title] token
However this does not work instead the same title is used every time I am not even sure where it is derived from as it seems to just be "feedback"
If you use the Node ID token it uses the node id of the webform not of the current page.
Lastly if you use the current path token [current-page:url:path] you get webform-feedback/ajax
I am confused how the feedback form is meant to identify the page that people are providing feedback on.
Comments
Comment #2
developerchris commentedComment #3
developerchris commentedComment #4
developerchris commentedComment #5
protitude commentedThanks for your question. You should be able to set the following token in a hidden field to see where a form has been submitted from:
[current-page:query:submittedfrom]Comment #6
developerchris commentedThanks. Not quite what I was looking for but it does show me what I need to do.
[current-page:query:submittedfrom] provides the node id (node/1234) for the page. But as that is not meaningful to the staff I can use it in a form submit callback to change it to its alias /category/my_page_title.
Comment #7
protitude commented