How to get the referer URL into PloneFormGen
by
T. Kim Nguyen
—
last modified
Sep 30, 2010 10:20 AM
if you want to grab the URL from which the person came
I made a PloneFormGen form that asks for the URL of the page where a person had a problem to report. If the person clicked on a link that took them directly to the help form, I'd like the URL to get populated automatically. To do that, I edited the URL field, clicked the Overrides 'tab', then gave this as the default value expression:
python:request.get_header("referer")











