Closed (fixed)
Project:
Webform
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2009 at 17:15 UTC
Updated:
4 Jan 2010 at 19:40 UTC
I have a hidden field that just contains:
%server[REQUEST_URI]
and it doesn't seem to process the token. It just renders:
<input type="hidden" name="submitted[path]" id="edit-submitted-path" value="%server[REQUEST_URI]" />
Notice that the URI isn't in the value field.
BTW, my form is a simple contact form on most pages of my site that sits in panels/blocks. I am trying to determine which page the form was submitted on. The site advertises vehicles and visitors inquire assuming I'll know which page they were on and which vehicle they were looking at. If there were a page title token that would load the parent page title (not the webform node title) that would be awesome.
Comments
Comment #1
nickbn commentedIt's likely that this isn't a bug and I'm just doing something wrong, please let me know. I can't figure it out though. Looks like other people have had success with the same thing.
Comment #2
quicksketchThe %server variables were removed for anonymous users because they could reveal sensitive data to other users when the form was saved to the page cache. As an alternative, you can simply use
%get[q](the internal Drupal path) to retrieve the page the user is currently on.Comment #3
nickbn commentedThat works well enough, thank you!