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

Dynamics 365 - Web Resources - Alert not displaying on form OnLoad

$
0
0

Hi,

Created a new Web Resource with the following code to display an alert onLoad  of a form.

    var Sdk = window.Sdk || {};

// Define some global variables
  

// Code to run in the form OnLoad event
     this.formOnLoad = function (executionContext) {
            var formContext = executionContext.getFormContext();
                alert('Hello World");
     }
// Code to run in the attribute OnChange event
     this.attributeOnChange = function (executionContext) {
             var formContext = executionContext.getFormContext();
     }

//  Code to run in the form OnSave event
             this.formOnSave = function () {
     }

}).call(Sdk);

All the calls are correctly configured
OnLoad Event:         Sdk.formOnload    &    Pass execution connect as first parameter
No errors when loading form

Any help is greatly appreciated.

Thanks


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images