A new enhancement in Dynamics CRM is Multiselect Option set. We can Get and Set Value using below code in the Multiselect Option set using Javascript:-
Get the value of a Multiselect Option Set
Get Value:-
Syntax:- Xrm.Page.getAttribute('FieldName').getValue();
Example:- Xrm.Page.getAttribute('new_myhobby').getValue();
Set the value of a Multiselect Option Set
Set Value:-
Syntax:- Xrm.Page.getAttribute('FieldName').setValue([<Value1>,<Value2>);
Example:- Xrm.Page.getAttribute('new_myhobby').setValue([360002,3660001]);
No comments:
Post a Comment