stop operation Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/stop-operation/ Microsoft Dynamics CRM . Microsoft Power Platform Fri, 19 Dec 2014 11:40:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32&ssl=1 stop operation Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/stop-operation/ 32 32 176351444 PREVENT , STOP SAVE FORM OPERATION USING JAVASCRIPT IN MS CRM 2013 (prevent form from save ms crm) https://microsoftdynamics.in/2014/12/19/prevent-stop-save-form-operation-using-javascript-in-ms-crm-2013-prevent-form-from-save-ms-crm/ Fri, 19 Dec 2014 11:40:00 +0000 http://microsoftdynamics.in/2014/12/19/prevent-stop-save-form-operation-using-javascript-in-ms-crm-2013-prevent-form-from-save-ms-crm/ WHEN YOU WANT TO ABORT AN SAVE OPERATION IN MS CRM , WE CAN USE THIS JAVASCRIPT TO STOP SAVE OPERATION IN MS CRM    context.getEventArgs().preventDefault(); 1. FIRST ADD A WEB-RESOURCE PASSING PARAMETER . function checkbox(context) {     var innerhtmls = Xrm.Page.ui.tabs.get(“{cab6696b-b74a-47a4-b278-fc07fe780565}” ).sections.get( “Sec_IdProof”).$1l_0.innerHTML;     var checkedis = innerhtmls.match( /defaultvalue=”1″/g );     if (checkedis == null) {         alert( “Please Select An Address Proof && An ID Prooof” );...

The post PREVENT , STOP SAVE FORM OPERATION USING JAVASCRIPT IN MS CRM 2013 (prevent form from save ms crm) appeared first on Microsoft Dynamics 365 Blog.

]]>
WHEN YOU WANT TO ABORT AN SAVE OPERATION IN MS CRM , WE CAN USE THIS JAVASCRIPT TO STOP SAVE OPERATION IN MS CRM

   context.getEventArgs().preventDefault();

1. FIRST ADD A WEB-RESOURCE PASSING PARAMETER .

function checkbox(context) {

    var innerhtmls = Xrm.Page.ui.tabs.get(“{cab6696b-b74a-47a4-b278-fc07fe780565}” ).sections.get( “Sec_IdProof”).$1l_0.innerHTML;
    var checkedis = innerhtmls.match( /defaultvalue=”1″/g );

    if (checkedis == null) {
        alert( “Please Select An Address Proof && An ID Prooof” );
        
        context.getEventArgs().preventDefault();
    }
}

2. CHECK THE CHECKBOX ( PASS EXECUTION CONTEXT  AS FIRST PARAMETER )

References


SOURCE : JUST2CODE.IN
Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post PREVENT , STOP SAVE FORM OPERATION USING JAVASCRIPT IN MS CRM 2013 (prevent form from save ms crm) appeared first on Microsoft Dynamics 365 Blog.

]]>
2819