In Webform 3.x, I have a "Give me feedback" webform that I embed in various places throughout my site using Panels. This form contains two hidden fields:
Referer / Default value: %server[HTTP_REFERER]
User agent / Default value: %server[HTTP_USER_AGENT]
This is extremely helpful because I can get the details of users' machines without having to ask them as well as get the page the user came from (because the webform is embedded on a number of pages throughout my site with Panels). However, %server\[\]
tokens apparently no longer work in Webform 4.x:
Most tokens will be upgraded for you, however some tokens do not have equivalents and no longer work. These include %post, %request, %cookie, and %session. The %get token (which maps to PHP's $_GET variable) has the equivalent token [current-page:query:key].
Is there an alternate way to somehow include the user agent string and referer in a 4.x webform?