Hello,
Using the JQuery version of surveyJS, I'm trying to see if I can replicate something similar to the "Select2" dropdown.
Here is an example of what it looks like and what I'm trying to replicate with surveyJS :
In order to do so, I have tried out multiple things without prevailing with any of them which are :
- Trying to create a "dropdown"
For this solution the issues were that I could enable a search but neither could I add "custom values" or customize the "item templates" for the choices
- Trying to create a "tagbox"
This is the closest I have gotten where I have a tagbox with max 1 selection however, allowNewTags and a choicesByUrl however, here again, the issues I faces were that the tagbox isn't very pleasing to the eye when you know you can only "select 1 tag" and, once more, I could not figure out how to update the "item templates" for the choicesByUrl
- Trying to create a "custom widget"
I have tried out everything from this page Custom Widget however I have not been able to get even remotely close to anything, I think if I have the source code of the whole project where the screenshots were used I would have a better overview of what is done but just with this article I couldn't get anything nice
- Trying to create a "html"
This one gave me the most hope since it would allow me to use, for example, other libraries and their select boxes however, after some research, it seems those aren't for question but rather just to display some stuff like images and text so I dropped the idea.
So here is my question, could you help me figure out how I can get something similar to the Select2 using JQuery with surveyJS please ? I'm truly out of ideas and when I found the Dropdown Box With Custom Items I thought that was it but it doesn't seem to be available in JQuery.
Thanks a lot in advance for your assistance and if you need any more information about this issue, please feel free to ask and I'll get back to you asap.
Best Regards,
Yves
PS : I tried also for a bit the "renderAs" but it didn't seem to render anything but the default "dropdown"