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

nickbn’s picture

It'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.

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

The %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.

nickbn’s picture

That works well enough, thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.