Webform fields endpoint does not replace tokens

Created on 10 May 2023, over 1 year ago
Updated 9 December 2023, about 1 year ago

Problem/Motivation

I need to have tokens in the titles of webform elements, but the webform fields endpoint doesn't replace it and returns the raw token instead of the transformed value

Steps to reproduce

  • Create a simple webform with a name field, add any token in the field title.
  • Call the webform fields endpoint for this new webform and check the contents of the title of the name field

Proposed resolution

In the next comment a proposed patch

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇮🇹Italy robertom

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

Comments & Activities

Production build 0.71.5 2024