Vague error on submit in field widget when invalid item selected

Created on 26 February 2019, over 6 years ago
Updated 19 August 2025, about 1 month ago

We need custom error handling when an incorrect bundle for a field is selected from the field widget.

Right now, if you have an entity browser that allows every node type, and you select one that's not allowed by the field, the entity browser doesn't prevent it, but when you go to save the form, you get a vague error, such as "This entity (node: 55759) cannot be referenced."

πŸ› Bug report
Status

Active

Version

2.0

Component

Field widget

Created by

πŸ‡ΊπŸ‡ΈUnited States oknate Greater New York City Area

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024