Webform Tokens Not Working with File Upload

Created on 11 May 2018, over 7 years ago
Updated 23 September 2025, 19 days ago

I've got a webform that I'm displaying in blocks throughout our website for a basic makeshift job board. The webform is displayed on each job listing page to apply. On the webform, we have two file upload fields. I also have a hidden field to display the current page title where the webform is being submitted from (so we know which job is being applied for). I use the same token on other webforms to display referring urls for lead submissions, so I know the tokens normally work fine. However, for some reason on this particular webform it's not working and I believe it's tied to the fact that there is a file upload.

I've tried to display [current-page:title], [current-page:url], [current-page:url:absolute], [current-page:url:path], and [current-page:url:alias]. None work.

Right now I've got [current-page:url:alias] in there, rather than display the aliased URL in the submission, it displays this:

file/ajax/submitted/row_3/col_2/resume/form-aUYmEB29fXifrpDK_AMSNd5siqMQSGwcti8OuA1bVrY

I've gone around and around trying to figure out why it would do this, with no luck... I'm hoping someone else is familiar with this issue or can point me in the right direction.

πŸ› Bug report
Status

Closed: outdated

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States branram

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024