I have some code below by which I am opening quick create form for entities if enabled but if not enabled I want to open in new window. I need to identify the entity has enabled quick create form or not on definition and how to do it by Javascript?
var entityFormOptions = {}; entityFormOptions["entityName"] = "contact"; entityFormOptions["useQuickCreateForm"] = true;
// will make it true if quick create form not enabled
entityFormOptions["openInNewWindow"] = false;
// Set default values for the Contact form var formParameters = {};
// Open the form.
Xrm.Navigation.openForm(entityFormOptions, formParameters).then( function (success) { console.log(success); }, function (error) { console.log(error); });
*This post is locked for comments