Does not work with inline entity form fields

Created on 31 October 2023, 8 months ago
Updated 9 November 2023, 8 months ago

Problem/Motivation

Choices widgets do not work with Inline Entity Form → . Initialisation using original field names fails because IEF renames form element name attributes.

Steps to reproduce

Set Inline Entity Form complex widget for a parent entity reference field, set Choices widget for a child entity field.

Proposed resolution

Add inline entity form alter hook and use IEF field name attributes for choices settings.

The JS attach function is called several times with inline entity forms, so also add a check for already initialised elements.

Remaining tasks

RTBC

User interface changes

None.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Needs review

Version

2.1

Component

Code

Created by

🇫🇮Finland aleksip Finland

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

Comments & Activities

Production build 0.69.0 2024