Hi,
Is there a way to filter a multi-select option set on load of the form using javascript?
Thanks.
*This post is locked for comments
Hi,
Is there a way to filter a multi-select option set on load of the form using javascript?
Thanks.
*This post is locked for comments
Thanks Ben! This is what I need.
The question isn't covered in that link. What the link covers is the programmatic adding and removing of the selected values.
To filter the available values in a multi-select option set you need to remove the values you are filtering away (in the same way that you would with a normal optionset).
Use context.getFormContext().ui.controls.getByName("attribute_name").removeOption(752240000);
Hi,
You can use JS code to remove and add values, which you can filter based on your condition, please check this post should help you to with sample code: community.dynamics.com/.../dynamics-365-v9-0-set-multi-select-option-set-values-using-jscript
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
dkrishna
6