Created on 4 February 2022, almost 3 years ago
Updated 10 April 2023, over 1 year ago

Problem/Motivation

I am trying to use a token in a Webform radio button element. It works if I just need the current year. However, I am unable to automatically generate a token for NEXT year. The 'Token Math' alluded to in the title being [current-date:html_year] + 1.

I have also tried to work around Token and use a 'Computed Twig' element and I can get that Webform element to generate the required string, but I do not know how to add the string to the Radio button element. I was hoping something like, [webform_submission:values:hidden_element_with_computed_twig_string] would work, but, so far, no luck.

Any assistance you can provide would be greatly appreciated.

Steps to reproduce

Be an ignorant buffoon, like me.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Needs review

Version

1.0

Component

Token Actions

Created by

🇺🇸United States jrwest_webguy

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.71.5 2024