XRM JavaScript Get Value do formulário
Xrm.Page.getAttribute("new_dealercode").getValue();
Super Skylark
Xrm.Page.getAttribute("new_dealercode").getValue();