Hi I am trying Hide the business process flow in CRM 2015 on Leads. If the form has HideBpf = Yes then i want it hidden else if not then show it.
I am using the code below
function hideBusinessProcessFlow() {
Xrm.Page.ui.process.setVisible(false);
}
function showBusinessProcessFlow() {
Xrm.Page.ui.process.setVisible(true);
}
function showHideBusinessProcessFlow() {
if (Xrm.Page.getAttribute(“new_hidebpf”).getValue() == false) {
showBusinessProcessFlow();
}
else {
hideBusinessProcessFlow();
}
}
But get this error
ReferenceError: showHideBusinessProcessFlow is not defined
at eval (eval at RunHandlerInternal (crm.xyz/.../ClientApiWrapper.aspx, <anonymous>:1:1)