Comments (33)
I am curious if this issue will ever be resolved. It is 2019, and the issue was raised in 2016. If there is a new version of Choices coming out, when will it release?
Also, I would suggest that until then this be listed as a limitation of the tool on the main page. I have wasted a significant amount of time integrating Choices.js into our UI, before discovering that there is no way to provide a list of tags (with -select- tag) and additionally also allow the user to add their own tags. Maybe other individuals can be saved from this frustration...
from choices.
Just to give an update, I've begun work on this within a feature branch
from choices.
still not possible ? ;s
from choices.
For anyone looking for a good alternative that supports this feature see https://github.com/yairEO/tagify
from choices.
I have wasted a significant amount of time integrating Choices.js into our UI, before discovering that there is no way to provide a list of tags (with ) and additionally also allow the user to add their own tags.
^^ Ditto, quite surprising.
I had found myself in the same situation. Check out the fix I made. It's been working fine in production since July.
from choices.
FYI, I've a pushed a PR (#79) to help complete this feature.
Feel free to comment !
from choices.
For anyone looking for a good alternative that supports this feature see https://github.com/yairEO/tagify
Works neat!
from choices.
Easy temporary workaround for anyone in need
It's not perfect and I don't actually recommend it but if you're in need/in a hurry - it's something.
from choices.
Still an issue in the end of 2022? OMG...
Today I discovered that this library does not support this function. 😢
from choices.
The ability to add custom items to a multi-select is a definite possibility - that would be fairly simple to implement. Thanks for the suggestion.
from choices.
@jshjohnson if you are about to implement this feature can I also ask to apply this also for single select option tag? It would be great help on something I'm currently working...
from choices.
@jshjohnson I would like to give you some input here, so for the single value:
http://codepen.io/dgt41/pen/xRbpwK/
And for the multiple values:
http://codepen.io/dgt41/pen/RoNxro
And couple remarks here:
- there should be an option for the value (both for single and multiple)
- the search should return ONLY exact results not partials as it is ATM
Hope this is somehow helpful
from choices.
@jshjohnson any ETA here?
from choices.
@dgt41
I'll be looking at this as soon as I can - very busy this week though. I'm happy to review pull requests.
from choices.
@jshjohnson I did some testing on the feature branch, so for the single the item is added but is not active:
For the multiple I do get some strange behaviour, adding a new item will also add another (already existing) item. I hope I can find some time debugging and contributing some code
from choices.
Thanks to the PR from @StephaneTrebel, we're close to getting this feature through the door.
Things left to do:
- Ensure the select box stays focussed after inputting a custom choice
- Ensure the
duplicateItems
config option works with select elements (i.e. no inputting a value that already exists) - Ensure added values are shown in the dropdown if the dropdown contains groups
from choices.
FYI, I've done some tests and I think that :
- Ensure the duplicateItems config option works with select elements (i.e. no inputting a value that already exists)
is ok.
I have not tested the groups since I don't use them yet. If I do I'll give a heads up :)
from choices.
Sorry, I do not understand how I do it.
Is it working or not?
Or is it still in development?
from choices.
@erikskar This feature is still in development (in the feature/select-add-items
branch)
from choices.
Can we help?
from choices.
Hi @rstacruz - sure! I think this feature is really close to completion. It just needs some unit tests + some investigation into option groups (i.e what should happen if you have a groups of options and you add a new option).
from choices.
@jshjohnson any progress here?
Can you release a beta (that doesn't include the groups part)?
Thanks
from choices.
News...
from choices.
There is still one issue here if you have a select box with groups - added items do not appear in the dropdown. I think in this situation a group should be added titled 'Miscellaneous' with custom items within it. I don't think this is a blocker though so i've merged this into version 2.8.0.
from choices.
Sorry guys, I can not find any code for this feature. 😣
Could anyone tell me how to set the configs to support add items for multi-select?
from choices.
@zhanglun This feature is no longer being actively worked on. To enable it requires a more fundamental refactor of Choices (which is in the pipeline)
from choices.
@jshjohnson
Thank you very much. I really look forward to the new version
from choices.
Wow. I thought that the Choices have this feature. I need it too.
from choices.
I have wasted a significant amount of time integrating Choices.js into our UI, before discovering that there is no way to provide a list of tags (with ) and additionally also allow the user to add their own tags.
The same situation..
from choices.
I think I want to give a shot at making this work. I also want to use it for a project.
from choices.
I have wasted a significant amount of time integrating Choices.js into our UI, before discovering that there is no way to provide a list of tags (with ) and additionally also allow the user to add their own tags.
^^ Ditto, quite surprising.
from choices.
I would love to see this as an option.
from choices.
I know this is really old; however, I did come up with a solution today for my needs that was very simple. I needed a way for a user to type a client name and if our database had a match the user can select the client. If there is not a match, the user can choose what they've searched for as the client.
from choices.
Related Issues (20)
- setChoiceByValue success but item is not highlighted HOT 1
- Behaviour of dropout elements on mobile device
- Choices does not behave like other HTML elements in a disabled fieldset
- iOS Firefox Virtual Keyboard / Disappearing Options Issue
- Dark Theme
- Search input outside the dropdown elements
- Can I add a choice that not existing in the choices (multiple select) HOT 1
- Wrong handling of ampersand in option text HOT 3
- to remove selected item we should click on it twice in a row (choices with Adjax-history in drupal)
- Need more sample such as Add, Edit or delete item HOT 1
- "TypeError: A is undefined" when using with importmaps + Stimulus.js HOT 1
- searchEnabled not disabled
- classNames
- Placeholder not showing HOT 3
- Mobile Cant Touch First Option HOT 1
- classNames.itemChoice is undefined in callbackOnCreateTemplates choice
- No workaroud validation when select is required HOT 1
- How can I access original option elements from the callbackOnCreateTemplates?
- Is this project still alive? HOT 5
- appendValue not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from choices.