How to get a form
function controlFormRibbon() {
var formLabel;
var currForm = Xrm.Page.ui.formSelector.getCurrentItem();
formLabel = currForm.getLabel();
//this code to show the ribbon if only the current opened form is Partner,
//otherwise remain disable/hidden
if (formLabel == "Partner") //change this with your own specific form name
{
return true;
}
else
{
return false;
}
//you can also apply the different/reverse rule here, for example you want to hide if form is Partner
}
http://missdynamicscrm.blogspot.in/2015/02/show-hide-ribbon-based-on-specific-form-in-multiple-forms-crm.html
function controlFormRibbon() {
var formLabel;
var currForm = Xrm.Page.ui.formSelector.getCurrentItem();
formLabel = currForm.getLabel();
//this code to show the ribbon if only the current opened form is Partner,
//otherwise remain disable/hidden
if (formLabel == "Partner") //change this with your own specific form name
{
return true;
}
else
{
return false;
}
//you can also apply the different/reverse rule here, for example you want to hide if form is Partner
}
http://missdynamicscrm.blogspot.in/2015/02/show-hide-ribbon-based-on-specific-form-in-multiple-forms-crm.html
No comments:
Post a Comment