Default Value from Source-entity: Null is not empty

Created on 17 February 2024, 10 months ago
Updated 4 April 2024, 9 months ago

Problem/Motivation

I have a webform attached to node content, used to update this content and other actions.

Steps to reproduce

The webform has a few fields of "text format". The default value of these fields are from the parent content:

[webform_submission:source-entity:node_field_name]

If the node_field_name has a value, it retrieves the data successfully. But if the node_field_name is null, the webform field will just display "[webform_submission:source-entity:node_field_name]". This is not good because if I don't make changes to this field, then "[webform_submission:source-entity:node_field_name]" will be passed onto the node content as real value when the webform is submitted.

Is there a way not to display any thing if the retrieved value is null?

I tried to use JS, no luck.

Please advise. Thank you in advance!

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: works as designed

Version

6.2

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