Tokens not supported in field name in action with template 'form field: get submitted value'

Created on 4 July 2023, over 1 year ago
Updated 6 August 2023, over 1 year ago

Problem/Motivation

Working with a webform, if we add an action with 'form field: get submitted value' template, below in the 'Custom properties' is the field 'name field', in its description it is said that it supports tokens but it doesn't.

Steps to reproduce

1. Create a webform with two elements. For example two selectors.
Element 1 ; title: colour; key colour; value: red.
Element 2; title: red; key red; values: scarlet, maroon, cherry (or other kinds of red)
2. Now in the ECA model:
2.1 Create the start event 'Submit form'
2.2 Create an action with 'form field: get submitted value' and fill the name field with 'colour' and the token with 'token-colour'
2.3 Create another action with 'form field: get submitted value' and in the name field write: [token-colour]. Now in the token name it as 'token-red'
3. Now create an action for creating an entity type, for example an article and create an action to set a value for example in the body. Set [token-red] as value and when this content is displayed it will not show anything, because the field name in 'form field: get submitted value' (2.3), does not support token so instead taking the value it looks for an input with name = [token-colour]
Note: don't forget in the action with template 'Entity: set field value' in 'save entity' field to select yes.

Proposed resolution

Or this field gets token support or it should be deleted from the description that this property supports token

Remaining tasks

User interface changes

If tokens support is not developed in this field, it should be removed from the description.

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024