Tag Archives: Picklist
How to Dynamically Filter Multi-Select Option set/Picklist in D365 CRM using JavaScript
In this blog, I am going to show how we can filter a field (multi-select option set) item dynamically based on another field (single-select option set) item. Letās consider a use case, We have a field named āApplication Areaā which is a (single-select option set) field and āApplication Typeā which is a (multi-select option set) field. Letās have a look at JavaScript where the magic is making this possible. Step 1: Below is the entire code of JS For Table/Entity Main Form customization, select āForm Propertiesā to include JavaScript function as below, On Load: oApplicationAreaType.Main On Change of field āApplication Areaā: oApplicationAreaType.getDetails Note: Pass the execution context for calling the JS function. Thatās all, we have created a dynamic filtering of multi-select option set using JavaScript. Hope this helps!!