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

form saving twice

$
0
0

Hi

I have same issue as previously discussed with form saving twice. And a message

Cause is setting lookups value set OnLoad page. If I disable that, save is working fine

            if (retrieveEventData.results[0].name != null) {
                var setLookup = [];
                setLookup[0] = {};
                setLookup[0].id = retrieveEventData.results[0].fieldId.toUpperCase();
                setLookup[0].name = retrieveEventData.results[0].name;
                setLookup[0].entityType = "entityname";
                Xrm.Page.getAttribute("fieldname").setValue(setLookup);
                Xrm.Page.getAttribute("fieldname").setSubmitMode("always");
            }

And also got this error - there is no save in javascript code:

ReferenceError: 'save' is undefined
   at eval code (eval code:1:1)
   at RunHandlerInternal (/form/ClientApiWrapper.aspx?ver=-700007492:155:1)
   at RunHandlers (/form/ClientApiWrapper.aspx?ver=-700007492:114:1)
   at ExecuteHandler (/form/ClientApiWrapper.aspx?ver=-700007492:78:1)
   at Mscrm.TurboForm.Control.CustomScriptsManager.prototype.$BQ_1 (_static/form/formcontrols.js?ver=-700007492:2967:17)
   at Mscrm.TurboForm.Control.CustomScriptsManager.prototype.executeHandler (/_static/form/formcontrols.js?ver=-700007492:2913:13)
   at Mscrm.TurboForm.Control.CustomScriptsManager.prototype.executeHandlerByDescriptor (/_static/form/formcontrols.js?ver=-700007492:2944:13)
   at Anonymous function (/_static/form/formcontrols.js?ver=-700007492:2952:13)
   at Anonymous function (/_common/global.ashx?ver=-700007492:27700:135461)
   at Mscrm.TurboForm.Control.Data.DataEntity.prototype.$CL_1 (/_static/form/formcontrols.js?ver=-700007492:11478:13)

Thank you,


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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