Is this supposed to work within a webform?

Created on 23 April 2024, 2 months ago
Updated 7 May 2024, about 2 months ago

Problem/Motivation

I'm using Version 2.2.0 and would like to use this within a webform, because it says on the module page: "Since 2.2.0, this module supports Webform via a submodule." The submodule is installed, but I only ever get the fallback string value, even when one of the fields is not empty and should get returned. As there is next to none documentation as to how this is supposed to work, I hope it's OK to clarify this via an issue.

Steps to reproduce

1. Webform with 3 fields on different Pages (so the submission token are generated): field_a_source_entity_ref, field_b_source_textfield, field_c_target_token_or

2. Set default value in field_c_target_token_or to [webform_submission:values:field_a_source_entity_ref|webform_submission:values:field_b_source_textfield|"fallback string"]

3. Select an entity to populate field_a or fill out field_b

4. None of the token is replaced, there is always the fallback string in field_c (or nothing, if I omit the fallback string)

Bonus: I also tried to use the token_or-token in https://www.drupal.org/project/webform_content_creator β†’ just to make sure that the webform is submitted and all the submission token should be created. There is no token replacement done whatsoever, I get the cleartext token as result.

So is this supposed to work within a webform, and if so, what am I missing?

πŸ’¬ Support request
Status

Postponed: needs info

Version

2.2

Component

Documentation

Created by

πŸ‡©πŸ‡ͺGermany heliogabal Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @heliogabal
  • πŸ‡ΊπŸ‡ΈUnited States pianomansam

    @heliogabal I'm sorry to hear the module isn't working for you. The scenario you describe sounds pretty complicated and won't be easy to replicate. Can you provide a simple scenario where you aren't seeing it work? Perhaps the module does work in simpler scenarios but not complex ones. We'll need to narrow down exactly where it breaks down.

  • Status changed to Postponed: needs info about 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States pianomansam

    Updating to postponed as more information is needed from the OP to resolve this.

Production build 0.69.0 2024