Hi, I'm working on a project which have create form and update form. I try to get the selected multiple choices to populate in the update form but not success. I've struggle many days trying to get the pre-selected choices to re-populate in the update form. I wish someone can help.
I saw in the document, Items may be a way that I can try to solve my problem but the Items feature does not seem to work. Below is what I've tried.
var multipleCancelButton = new Choices('#choices-multiple-remove-button_update',
{item: ['dermatology', 'gastroenterology', 'maternal health', 'lenox hill hospital'],
removeItemButton: true,
maxItemCount:100,
searchResultLimit:100,
renderChoiceLimit:100
});
Hi, I'm working on a project which have create form and update form. I try to get the selected multiple choices to populate in the update form but not success. I've struggle many days trying to get the pre-selected choices to re-populate in the update form. I wish someone can help.
I saw in the document, Items may be a way that I can try to solve my problem but the Items feature does not seem to work. Below is what I've tried.
var multipleCancelButton = new Choices('#choices-multiple-remove-button_update', {item: ['dermatology', 'gastroenterology', 'maternal health', 'lenox hill hospital'], removeItemButton: true, maxItemCount:100, searchResultLimit:100, renderChoiceLimit:100 });