Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for conditional logic in multiple selection field #7272

Open
arturofez opened this issue Mar 3, 2024 · 0 comments
Open

Add support for conditional logic in multiple selection field #7272

arturofez opened this issue Mar 3, 2024 · 0 comments
Labels
Component: DFV Issues related to the Pods DFV JS that powers form fields Type: Enhancement Enhancements to features that already exist, but are not major additions
Milestone

Comments

@arturofez
Copy link

Problem to Solve

The conditional logic cannot be applied when the target field is a relationship with a simple custom list, and the selection type is set to multiple.

For instance:
Captura de pantalla 2024-03-03 a las 20 24 08

Simple list multiple field

The 'Simple list multiple field' is a relationship field with a Simple type:
Captura de pantalla 2024-03-03 a las 20 24 39

Selection type: multiple selection
Captura de pantalla 2024-03-03 a las 20 28 48

Field with conditional logic

Captura de pantalla 2024-03-03 a las 20 26 05

The conditional logic is never applied because the comparison is from a value to an array, as can be seen in the browser JS console:
Captura de pantalla 2024-03-03 a las 20 30 51

Proposed Solution

Introduce new comparison operators in the conditional logic selection, specifically for multiple selection target fields: 'contains' and 'does not contain':
Captura de pantalla 2024-03-03 a las 20 35 22

Possible Workaround

No response

Examples Elsewhere

No response

Screenshots / Screencast

No response

@arturofez arturofez added the Type: Enhancement Enhancements to features that already exist, but are not major additions label Mar 3, 2024
@sc0ttkclark sc0ttkclark added the Component: DFV Issues related to the Pods DFV JS that powers form fields label Mar 25, 2024
@sc0ttkclark sc0ttkclark added this to the Pods 3.2 milestone Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DFV Issues related to the Pods DFV JS that powers form fields Type: Enhancement Enhancements to features that already exist, but are not major additions
Projects
None yet
Development

No branches or pull requests

2 participants