Friday, August 19, 2011

Set and Get value from the CRM2011 optionset

In CRM 2011 Jscript its totally different than the CRM4 So today I will show you how to set and get data form an option set. Following codes are demonstrate that

Get Values from the CRM2011 Optionset
Xrm.Page.getAttribute().getValue();

OptionField will be your attribute name

Set values to the CRM2011 Optionset

Xrm.Page.getAttribute().setValue('1');

OptionField will be your attribute name

0 comments:

Post a Comment