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

Custom Creatable Options Based on Search Results in Selectize.js #2173

Open
mustafavanli opened this issue Dec 21, 2024 · 0 comments
Open

Custom Creatable Options Based on Search Results in Selectize.js #2173

mustafavanli opened this issue Dec 21, 2024 · 0 comments

Comments

@mustafavanli
Copy link

I'm trying to use the creatable function in Selectize.js, but I want to show two different creatable options when an item isn't found in the list. For example, if a user searches for something that isn't already in the list, I want two different options to appear: "Add a Person" and "Add an Organization". These options should only appear when no items are found during the search.
How can I achieve this behavior in Selectize.js? I'd really appreciate any guidance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant