Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Request to extend Webform 4 support for %server variables that were commonly used in Webform 3. There are several server variables that are not part of the standard Drupal 7 token options. Writing a custom module is an option, but the additional functionality would make the default module more robust.
A few useful variables to add:
- %server[HTTP_USER_AGENT]
- %server[HTTP_REFERER]
Comments
Comment #1
DanChadwick CreditAttribution: DanChadwick commentedI don't think this functionality has anything to do with webform, except for historical reasons. I would suggest you open an issue with the token module. They are current page tokens, not submission tokens, and would not have correct values where tokens are needed in webform, such as resending emails.
Comment #2
helmo CreditAttribution: helmo at Initfour websolutions commentedSuch an issue now exists in the token queue: #2021969: Provide a token for [current-page:referrer]