Support for Select2 field widget

Created on 17 December 2024, about 1 month ago

Problem/Motivation

Currently, the Conditional fields support the Select field widget as the Control field. I can select the Value from the Select field (which is a multiselect field) and based on that display Target fields. However, this stops working completely once I change the multiselect list field to use Select2. The Target fields display by default and not get triggered by changes in the value on the Select field.

Steps to reproduce

  1. Add a List (text) field with options a, b, c, d, e
  2. Make the cardinality of the field Unlimited
  3. Add 5 fields corresponding to the List options
  4. Add Conditional fields for each field triggered by the value of the Select field
  5. Verify that the Conditional fields are working fine. All 5 fields will be hidden by default and display once the corresponding value is selected from the Multi-Select List
  6. Change the List (text) field widget to use Select2
  7. On the Node forms, all 5 fields appear by default ,and changing the value on the Select2 field doesn't affect the corresponding fields or any other field.
📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇮🇳India imalabya Bangalore

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