Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Hiding Business Process flow in CRM 2016

$
0
0

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)


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>