Giter Club home page Giter Club logo

Comments (33)

garyapps avatar garyapps commented on May 20, 2024 6

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.

jshjohnson avatar jshjohnson commented on May 20, 2024 5

Just to give an update, I've begun work on this within a feature branch

from choices.

phonosys avatar phonosys commented on May 20, 2024 4

still not possible ? ;s

from choices.

tobias-kuendig avatar tobias-kuendig commented on May 20, 2024 3

For anyone looking for a good alternative that supports this feature see https://github.com/yairEO/tagify

from choices.

GoldenMaximo avatar GoldenMaximo commented on May 20, 2024 3

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.

StephaneTrebel avatar StephaneTrebel commented on May 20, 2024 1

FYI, I've a pushed a PR (#79) to help complete this feature.
Feel free to comment !

from choices.

wgch avatar wgch commented on May 20, 2024 1

For anyone looking for a good alternative that supports this feature see https://github.com/yairEO/tagify

Works neat!

from choices.

GoldenMaximo avatar GoldenMaximo commented on May 20, 2024 1

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.

Sogl avatar Sogl commented on May 20, 2024 1

Still an issue in the end of 2022? OMG...

Today I discovered that this library does not support this function. 😢

from choices.

jshjohnson avatar jshjohnson commented on May 20, 2024

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.

dgrammatiko avatar dgrammatiko commented on May 20, 2024

@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.

dgrammatiko avatar dgrammatiko commented on May 20, 2024

@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.

dgrammatiko avatar dgrammatiko commented on May 20, 2024

@jshjohnson any ETA here?

from choices.

jshjohnson avatar jshjohnson commented on May 20, 2024

@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.

dgrammatiko avatar dgrammatiko commented on May 20, 2024

@jshjohnson I did some testing on the feature branch, so for the single the item is added but is not active:
screen shot 2016-11-14 at 22 48 32

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.

jshjohnson avatar jshjohnson commented on May 20, 2024

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.

StephaneTrebel avatar StephaneTrebel commented on May 20, 2024

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.

erikskar avatar erikskar commented on May 20, 2024

Sorry, I do not understand how I do it.
Is it working or not?
Or is it still in development?

from choices.

jshjohnson avatar jshjohnson commented on May 20, 2024

@erikskar This feature is still in development (in the feature/select-add-items branch)

from choices.

rstacruz avatar rstacruz commented on May 20, 2024

Can we help?

from choices.

jshjohnson avatar jshjohnson commented on May 20, 2024

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.

dgrammatiko avatar dgrammatiko commented on May 20, 2024

@jshjohnson any progress here?
Can you release a beta (that doesn't include the groups part)?

Thanks

from choices.

ea2809 avatar ea2809 commented on May 20, 2024

News...

from choices.

jshjohnson avatar jshjohnson commented on May 20, 2024

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.

zhanglun avatar zhanglun commented on May 20, 2024

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.

jshjohnson avatar jshjohnson commented on May 20, 2024

@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.

zhanglun avatar zhanglun commented on May 20, 2024

@jshjohnson
Thank you very much. I really look forward to the new version

from choices.

mlshvdv avatar mlshvdv commented on May 20, 2024

Wow. I thought that the Choices have this feature. I need it too.

from choices.

mlshvdv avatar mlshvdv commented on May 20, 2024

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.

kittee avatar kittee commented on May 20, 2024

I think I want to give a shot at making this work. I also want to use it for a project.

from choices.

alvin avatar alvin commented on May 20, 2024

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.

sevenpixels avatar sevenpixels commented on May 20, 2024

I would love to see this as an option.

from choices.

djames004 avatar djames004 commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.