Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Xrm.Page.data.save() does not save the form, prompts unsaved changes in the form

$
0
0

Hi,

I have written a javascript to set one of the two option field to YES and saving the form using the Xrm.Page.data.save() method but the form prompts a message unsaved changes , below is the code that i have written. Any help on this is appreciated.

    Xrm.Page.getAttribute("field1").setValue(1);
    Xrm.Page.getAttribute("field1").setSubmitMode("always");

    Xrm.Page.data.save().then(closeemailform, errorCallback);



Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>