select2 plug-in selected property
select2 plug-in selected property
I can select options and save data. However, when I load the editor, the selected values for a given record are not indicated. If I change the field type to a checkbox, the correct checkboxes are checked when the editor form loads. What needs to be done in order to get selected values for the select2 field type?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Could you link to the page so I can debug that please. I'm not aware of an issue with the Select2 plug-in for Editor that would cause that.
Allan
Allan,
I don't have anything publicly available. Is there some other way I can get you the information that you need to help?
This is the same issue as 88642 but I wanted to get it logged under Editor as well. My apologies for the duplicate.
Chad
Hey Allan, this is my most pressing issue at the moment. If I can figure out why options are set to selected when the editor loads, that would be awesome. Is there anything special that I need to do? Do I just not have something configured properly in order to make that happen?
A standard select as the type doesn't appear to work either. I have to be doing something wrong.
In fact, a standard select won't even persist the data. The select2 is working aside from its inability to set selected for the applicable options.
There shouldn't be anything special you need to do. You need to make sure that the values being used (
areas[].ID
) are the values that Select2 is being populated with. What are you using to populate the options?Allan
This join...
Hi,
Just to check - you noted in one of your other threads that your other issues had been resolved. Does that include this one?
The above does look like it should work!
Allan
Yes sir, this is the same issue and can be closed.
Thank you,
Chad