Submission data: entity and term reference element data are only exported as ids

Created on 28 May 2025, 9 days ago

Problem/Motivation

Currently, these webform elements only export the id of the entity or term to the sheet:

  • entity autocomplete
  • entity checkboxes
  • entity radios
  • entity select
  • term checkboxes
  • term select

In our case, this internal id by itself is not useful and does not make any sense to the user reading the output on these sheets. We need it to render the entity's title or taxonomy term's name instead.

Steps to reproduce

Via the handler's settings, just add any of the element types listed above to your submission data. Then look at the data that has been exported to the sheet.

Proposed resolution

Nowhere on the webform is the id of the entity or taxonomy term listed to select. While the id might be useful for developers, it is not a reasonable representation of the data on the sheet for a casual user. The default output should be the title or name of the entity or term. At most, an optional configuration setting could be added to append the id after the title or name of the outputted data, such as "title (id)", which can help differentiate two titles/names that appear the same.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fizcs3 Omaha, Nebraska; USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024