March 16, 2015
Posted by on
When using combo boxes / list boxes, we sometimes have to give users the ability to add / enter values, that are not part of the predefined value list.
When developing applications for the Notes Client, all we had to do was to just tick the box “Allow values not in list”. Yes, those were simpler times indeed.
As you know, we don’t have that option with XPages and had to come up with our own solutions for that.
With select2, however, you can do it. Though before the 4.0.0 version, it was rather cumbersome (not going into details here). But with the latest version, it is as easy as adding a data- attribute to your combo box / list box, which that’s really all you have to do. And here is, how:
Read more of this post