I'm struggling with the submission tokens in the confirmation page of my 2 steps modal form.

I'm using webform, ctools and modal forms.

There's a patch for modal_forms.pages.inc to replace tokens but even with this patch applied, tokesn are replaced with an empty string.
And its not a problem with the way I use the token because if I use [submission:values] its also replaced with an empty string.

In the webformsettings, if I set the confirmation to a confirmation message, the message is displayed with good tokens replacements ... but I need to use a confirmation page.

It seems that my confirmation page is built before tokens' remplacements or before the submission values are accessible ...

EDIT2 :

Now I can say that modal_forms doesn't wait for submission to be created before displaying the confirmation message. Or maybe it is because the modal form doesn't really reload the page ?

Comments

msizec created an issue. See original summary.

msizec’s picture

Issue summary: View changes
msizec’s picture

Issue summary: View changes
msizec’s picture

Issue summary: View changes