locked
CRM 2013 Add JScript validation & Abort on Ribbon Button before its command RRS feed

  • Question

  • On CRM 2013 Lead Entity Form, i need to add the JScript validation before  Qualify button on Commandbar/Ribbon.

    I was able to add  the custom JScript in Qualify button command before its regular Script. But when validation fails, i do not want to execute its qualify operation and abort the operation at that point. 

    Can any one share How can i abort the operation from my custom JScript without executing the Qualify operation??

    Tuesday, November 18, 2014 1:53 PM

Answers

  • Hi,

    Call the javascript which used in Qualify button from your custom javascript function.

    You can use some logic like this in your js function

    If(true)

    {

     Mscrm.CommandBarActions.QualifyLead (need to check the exact name of the inbuilt function)

    }


    • Marked as answer by Nicksoft2011 Friday, December 5, 2014 8:16 PM
    Thursday, November 20, 2014 11:32 AM