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

Conditions Function Error based on Multiple Selection #22054

Open
Jerrygu113 opened this issue Apr 2, 2024 · 2 comments
Open

Conditions Function Error based on Multiple Selection #22054

Jerrygu113 opened this issue Apr 2, 2024 · 2 comments

Comments

@Jerrygu113
Copy link

Describe the Bug

When I set the conditions on my field. if my condition is based on another multiple-select drop down list, It always doesn't work. my drop dwon list is csv type

To Reproduce

  1. Create any field and set the condition like hidden in details
  2. set the rules with multiple drop down list
github error 3. when I select type, it is not hidden as setting.

Directus Version

v10.6.4

Hosting Strategy

Directus Cloud

@paescuj
Copy link
Member

paescuj commented Apr 3, 2024

You'll need to use the "contains" condition for CSV fields:

Support for this type of condition for CSV fields has been added in #22002 which will be available in the next release.
In the meantime, it might already partially work with "contains", see workaround in #11309 (comment).

Leaving this issue open for now, since we might want to improve the UX of the conditions interface

  • to display a dropdown with available options for "contains" condition, as it's currently the case with "equals"
  • and instead remove the dropdown selection for "equals", as it's misleading

@Jerrygu113
Copy link
Author

yeah, I have tried to use "contain" but it still doesn't work, I will wait the update of new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants