locked
how to catch quick form in mscrm 2013 through javascript RRS feed

  • Question

  • Dear all;

    i want to catch quick form through javascript in mscrm 2011 for example on load if its is a quick form then show me a message 

    Tuesday, April 22, 2014 7:35 AM

All replies

  • From CRM sdk with a few modifications.

    SDK.UISamples.getFormType = function () {
    var FORM_TYPE_QUICK_CREATE = 5;
    var formType = Xrm.Page.ui.getFormType();
     
    if (formType == FORM_TYPE_QUICK_CREATE) {
      alert("Quick Create");
     }
     else {
      alert("Other");
     }
    };
    

    • Proposed as answer by tiagolvsantos Tuesday, April 22, 2014 9:13 AM
    Tuesday, April 22, 2014 9:13 AM
  • Hi

    thanks for the answer can we somehow catch it from plugin???

    Tuesday, April 22, 2014 11:57 AM
  • You can`t catch the Quick Form Type from a plugin.

    Tuesday, April 22, 2014 3:32 PM