XRM JavaScript obtenga valor del formulario
Xrm.Page.getAttribute("new_dealercode").getValue();
Super Skylark
Xrm.Page.getAttribute("new_dealercode").getValue();