Hi!
I am having a strange issue after updating my Drupal to 7.41 and updating several Modules.
I have been working on updating my system with new responsive layout for months, so I cannot figure out what else has changed, which new modules could conflict.

I use WebForm for courses subscription.
After submission, I used to redirect to another Drupal page (Custom destination URL), setting the Confirmation Message to use some Tokens as follows:

%email[corso]
%email[nome]
%email[cognome]
Your registration number is %sid.

This message appears above the redirected page, but Tokens now do not work anymore.
I tried using other tokens as %post[corso] or %get[corso] or [submission:values:corso]
but none of them works.

The same tokens used for sending email works fine.

Could you please help me to find out the reason?
Thanks

Comments

anthosT created an issue. See original summary.

anthosT’s picture

I found out previous working version of Module:
Webform 7.x-3.18

Actual not working version:
Webform 7.x-3.24

Reverting to the old version Tokens start working again.

Simon Georges’s picture

I've had an issue with external redirect when one of the token has a space in it. Therefore I tried to fix it by adding

<?php
  elseif ($redirect_url) {
    $redirect = url($redirect_url);
  }
?>

at the end of the big if / else in webform_client_form_submit() function.

DanChadwick’s picture

Priority: Major » Normal
Status: Active » Fixed
Issue tags: -custom URL, -token, -token confirmation page

7.x-3.x gets critical bug fixes only.

muzzye@mskcc.org’s picture

DanChadwick posted this as fixed in reference to version 7.3x.
It should not have been closed as this problem still exists in the latest release.
I'm using 7.x-4.12 WebForm and 7.x-4.22 Webform Matrix Component.

So, redirecting to Custom URL the Confirmation message is not translating tokens that used to work.
Using [submission:values:whatever_field] only shows that text and not the fields value.
I tried various other formats as described in the token examples; None of them work.

DanChadwick’s picture

@restlest - whatever issue you are having is unrelated to this issue. You are using webform 4.x style tokens. There are hundreds of thousands of sites using these, a good proportion with 4.12. I'm guessing something else is amiss, either in your site (e.g. conflicting module) or webform config.

kconrad’s picture

I also have a previously-working form that emailed confirmations with variables that I set in Rules. It worked for 2 years without fail but suddenly stopped working and now all of my data selectors come up as "invalid". I've tried to reset them and nothing works. If you choose anything from the provided data selectors it comes up as "invalid". See 2 screenshots at links. My application is dead without this functionality. I don't know if this is a webform tokens issue or Rules module issue.

https://jila.colorado.edu/testbed/sites/default/files/issues/data_select...
https://jila.colorado.edu/testbed/sites/default/files/issues/data_variab...

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.