[Select2] Custom value

[Select2] Custom value

  
Forge Component
(2)
Published on 2015-06-29 by Eduardo Luís
2 votes
Published on 2015-06-29 by Eduardo Luís

Does select2 allow you to override the list and type in a custom value ?

Solution

Hi Mark,


Select2 supports two types of data sources: option items (if you apply it to select inputs)and ajax fetch: https://select2.org/data-sources.


Additionally you can configure it to work support tagging, where the end user can add items to the list while typing : https://select2.org/tagging.


I don't know what is the version of select2 supported by this forge component or by the select2 that comes out-of-the-box with SilkUI (https://silkui.outsystems.com/Patterns_Web.aspx#Web_Featured_Select2) but depending of the versions you might not have all the possibilities.


Cheers,

Renato


Mark Jurkovich wrote:

Does select2 allow you to override the list and type in a custom value ?



Solution

Hi Renato. Thanks for the reply. I was looking for slightly different behavior. I am looking for the ability to allow random one off custom values to be entered without changing the actual list going forward. I'll try a datalist or autocomplete instead.