January 23, 2013 52 Comments
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.