Multi-Select Option Sets: Part 2
January 23, 2013 23 Comments
Today I’m going to revisit one of my more popular posts: Multi-Select Option sets. This little JavaScript hack is a great way to present the selection of multiple option set values. The biggest problem with it is that it is absolutely not a supported customization, and with the latest release of CRM the previous implementation has started to break for many people.
Place two fields on the form (an option set and a text field). Be sure to hide them after they’re on the form.
Add the Multi-Select web resource to the form. In the parameters section, put the schema names of the fields you just created. The order matters, so put the option set first, then the text field. Note: Don’t include a space after the comma or you’ll get errors.
Go to the form properties and add the MultiSelect_OnSave.js library.
Finally, add an OnSave event referencing the Multi-Select library and pass the name of the web resource you inserted on to your form. If you need to add multiple Multi-Selects, then just create multiple OnSave events with each one referencing the different resources.
And that’s all there is to it! Here’s the solution. Happy CRM’ing! As always, this code is provided as-is and on warranty.







Subscribe








