Problem/Motivation
When a required field of the referenced entity is not filled, while adding another referenced entity, the field is highlighted with red error border as expected. But there is no error text saying that the field is required. This happens only when the reference field is multi-valued and "Inline entity form - Simple" widget is used.
Steps to reproduce the issue
- Create two content types: "Article" and "Basic Page".
- Make "Body" field of "Basic Page" content type required.
- In "Article" content type, add a new Reference field pointing to "Content". Name it as "IEF". Make this a multi-valued field.
- On /admin/structure/types/manage/article/fields/node.article.field_ief, in "Reference Type" fieldset, choose "Basic page" as content type and save.
- Go to "Manage Form Display" of "Article" content type (/admin/structure/types/manage/article/form-display). Make the widget of "IEF" field to be "Inline entity form - Simple".
- Go to "Create Article" form page (/node/add/article).
- Fill title of the article as "Test article".
- Fill title of the page referenced in IEF field as "Test page". Keep "Body" field empty.
- Click on "Add another item" below.
- You will see a red border around the "Body" field inside the IEF fieldset. This is expected since the "Body" field is required but is not filled.
- But there is no error text mentioning that the "Body" field is required.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2019-05-02 at 8.14.01 AM.png | 142.01 KB | neeravbm | |
| Screen Shot 2019-05-02 at 8.14.47 AM.png | 36.91 KB | neeravbm | |
| Screen Shot 2019-05-02 at 8.14.34 AM.png | 57.32 KB | neeravbm |
Comments