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

Changing BPF with JS

$
0
0

-- Disclaimer:  I'm not a programmer --

I need a way to set a specific business process flow when a form is loaded.   I found the following JS on a Google search which hides or shows the BPF.  Can someone help me with a modification to this which sets a specific BPF in the same way; i.e., evaluating a boolean on the form?  I want to set the BPF to BPF2 rather than BPF1.  I know I can do this via workflow, but I want it to be there when the user opens the form.

Thank you!

function hideBusinessProcessFlow() {

Xrm.Page.ui.process.setVisible(false);

}

function showBusinessProcessFlow() {

Xrm.Page.ui.process.setVisible(true);

}

function showHideBusinessProcessFlow() {

if (Xrm.Page.getAttribute(“po_hidebpf”).getValue() == false) {

showBusinessProcessFlow();

}

else {

hideBusinessProcessFlow();

}

}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images