ttajic
8/11/2015 - 9:16 AM

getAttributeValue & setAttributeValue on CRM form

getAttributeValue & setAttributeValue on CRM form

Xrm.Page.getAttribute('ad_segment').setValue(830283);
var ad_utilitytype = Xrm.Page.data.entity.attributes.get("ad_utilitytype").getValue();

or

var ad_utilitytype = Xrm.Page.getAttribute("ad_utilitytype").getValue();