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