locked
How to hide the business process steps of business opportunities? RRS feed

  • Question

  • How to hide the business process steps of business opportunities?


    • Edited by tsyj211 Thursday, February 16, 2017 11:06 AM
    Thursday, February 16, 2017 11:03 AM

All replies

  • 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();

    }

    }

    • Proposed as answer by Kristian Cole Thursday, February 16, 2017 12:53 PM
    Thursday, February 16, 2017 12:53 PM
  • Do you want to conditionally hide it or you want to completely remove from All Opportunity Forms?

    MaKeer

    Thursday, February 16, 2017 6:57 PM
  • I want to completely remove from All Opportunity Forms,

    How to set?

    Friday, February 17, 2017 1:07 AM
  • You can disable all the active Business Processes on given entity and it should stop rendering it on CRM form.

    Just to add: - If there are records already associated with Biz Process Flow, they will continue to show up. For such records you can do Bulk Update of ProcessID and StageID fields to NULL value


    MaKeer


    Friday, February 17, 2017 6:16 AM
  • I quoted the code you gave me, but it was wrong,

    I gusess The reason is that all elements on the page are not loaded,

    How to I do?

    ->

    TypeError: Cannot read property 'getValue' of null
        at HiddeProgess (https://cnbmtech.crm5.dynamics.com/%7B636228986850000781%7D/WebResources/new_HiddenProgess?ver=-1920563056:18:45)
        at eval (eval at RunHandlerInternal (https://cnbmtech.crm5.dynamics.com/form/ClientApiWrapper.aspx?ver=-1920563056:153:1), <anonymous>:1:1)
        at RunHandlerInternal (https://cnbmtech.crm5.dynamics.com/form/ClientApiWrapper.aspx?ver=-1920563056:158:1)
        at RunHandlers (https://cnbmtech.crm5.dynamics.com/form/ClientApiWrapper.aspx?ver=-1920563056:117:1)
        at https://cnbmtech.crm5.dynamics.com/form/ClientApiWrapper.aspx?ver=-1920563056:101:63
        at https://cnbmtech.crm5.dynamics.com/_static/_common/scripts/MicrosoftAjax.js?ver=-1920563056:24:18

    Friday, February 17, 2017 8:27 AM