Problem/Motivation

We have created a form with a radio button field in a field set that is conditionally hidden.
If a user does not fill out the radio button field (either because it is hidden or because he did not choose any value) the token is visible in the confirmation mail. (if a user sets a value it is correctly displayed in the mail.)
All other fields (radio buttons too) in this form work fine: If the user leaves them empty, the token is not displayed in the mail.
It seems it has something to do with radio buttons in field sets and/or radio buttons that are conditionally hidden.

This is the token we have used: [webform_submission:values:beziehung]
In the mail we have "Beziehung: [webform_submission:values:beziehung]". The expectation is that only "Beziehung:" is displayed in the mail if the user did not set a value.

Please let me know if you need more information or if I just missed a setting.

Thank you!

CommentFileSizeAuthor
#2 Token Webform Demo Site.png384.48 KBjrockowitz

Comments

jzech created an issue. See original summary.

jrockowitz’s picture

StatusFileSize
new384.48 KB


The Webform module's issue queue is for bugs, feature requests, and planning. Please post general support questions to Drupal Answers. You can also ask questions or help answer questions on the #webform channel on Drupal Slack.

You need to use the :clear suffix.

Just change [webform_submission:values:beziehung] to [webform_submission:values:beziehung:clear]

@see https://www.drupal.org/node/2972423

jrockowitz’s picture

If you enjoy and value Drupal and the Webform module, get involved, consider joining the Drupal Association, and backing the Webform module's Open Collective.
jrockowitz’s picture

Status: Active » Closed (works as designed)