Custom form - get the referrer url, page title or asset ID


(David Herrington) #1

Hi all

 

I have created a custom form where a customer can give us feedback about the previous page they were looking at. It's working great (thanks Nic for your help).

 

In the email options, I am using  %referral_url% and %referring_asset_assetid% to tell me the referral URL and asset ID of the page they were looking out. However, i'm not capturing that information in the form so when I export the submission log, I only have the feedback about the page and not the crucial information.....the referral url or asset ID the customer was looking at.

 

Any idea how I can get that information?


(Nic Hubbard) #2

Not sure what version you are on, but there is a %globals_page_referrer% keyword added in 5.0, which you could add as the default for a field. Then, just hide that field using CSS.

 

Before 5.0 you can use the %globals_server_HTTP_REFERER% keyword.


(David Herrington) #3

Not sure what version you are on, but there is a %globals_page_referrer% keyword added in 5.0, which you could add as the default for a field. Then, just hide that field using CSS.

 

Before 5.0 you can use the %globals_server_HTTP_REFERER% keyword.

 

Nic - you are a superstar.

 

I am running v4 and imminently about to upgrade to v5 so I did need the old keyword but handy to know the new keyword for when I upgrade.

 

That's now working exactly as I'd like. Thank you again so much.