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();