By Enzomaticus on
We have a webform in a block that lets anonymous visitors inquire about services that are relevant to the page they are currently on. Is there any way that the name or URL of the page they're on can be passed by the webform in the webform email?
I've searched extensively but can't find any conclusive results. Any help would be appreciated.
Comments
SOLVED
Found the solution - created a hidden field with the value %server[REQUEST_URI] and it passes the URL of the page nicely.
Does it work for anonymous
Does it work for anonymous users?
No :(
No :(
change
webform.module
and then use a hidden field %nid or %title
Thanks, This was very
Thanks, This was very helpful. I wish it could be committed as without it webforms in a block are useless.
I've updated webform and this
I've updated webform and this no longer works :(
Any ideas of how to do it now?
Something with this question
I have the same problem.
I test the method
but the Email sent the webform page's url,don't sent the url of the page that webform block they are currently on.
I search at http://php.net/manual/en/reserved.variables.server.php
and I replace
%server[REQUEST_URI]by
%server[HTTP_REFERER]it works!
So I paste this at this page,hope can help someone like me.
good
it works!
thank you very much!
The right piece of info
Thank you for the great piece of solution you pasted. It couldn't be more right and saved me hours of further researching and frustration.
Couldn't thank you more waveer!
Webform Patched module
The Webform Patched module takes care of this.
Works for me D7 Webform 3.18
Thanks, this just worked for me too!
Thanks the %server[HTTP
Thanks the %server[HTTP_REFERER] works a treat and also solves redirecting back to the referring page after submission.
Splendid - I owe someone a beer !