Use values from previous page to replace [submission:values:…] tokens

Created on 12 October 2016, over 7 years ago
Updated 4 February 2023, over 1 year ago

In some cases it would be good to be able to use [submission:values:…] tokens in default values of other components. Naturally this would be limited to work with the values from earlier pages in the form.

Proposed solution

  • Create a temporary submission object webform_client_form() and pass it to all _webform_render_*() implementations.
  • Pass the $submission parameter to all invocations webform_replace_tokens() and webform_filter_descriptions() (at least in _webform_render_*() implementations.

Current state

  • A patch implementing this is provided
  • The idea and its implementation need review and discussion.
✨ Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria torotil

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.

Production build 0.69.0 2024