RE: Remove a selected option from multi select optionset
Hi Amrita,
> You can get all option value with:
formContext.getAttribute("new_attribute").getOptions();
> You can get a specific option value with:
var value = formContext.getAttribute("new_attribute").getOptions()[i].value;
> You can remove a specific option by:
formContext.getControl("new_attribute").removeOption(value);
> You can add it back by:
formContext.getControl("new_attribute").addOption({
value:value,
text:'Text you want'});
Regards,
Clofly