BPF : How to disable field on the business process flow RRS feed

  • Question

  • Hello Folks,

    I need your help about a problem with the new feature : business process flow. 

    In fact, I want to disable field present on different stage, for instance : I am on the stage 0 (first stage) I want to disable the fields present on the stage 2 (second stage)... 

    I tried three methods :

    • If I use classic Xrm.Page.getControl(fieldname).setDisabled(true) it will only disable the field on the form and not on the BPF.
    • So i dug on it and I succeeded to achieve this with : Xrm.Page.getControl("header_process_" + fieldname).setDisabled(true); But this code works only if I am on the visible stage or if the corresponding stage have been displayed, that's mean that if I come from an OnLoad event and I want to disable field on the stage 2, it will not work because Xrm.Page.getControl("header_process_" + fieldname).setDisabled(true) will be null. 
    • The BusinessRule seems to have the same problem, it's not possible to hide field of BPF for all the stage, just possible for the current stage.

    Do you have any idea ? Is there a way to disable fields on BPF ? 

    Thanks a lot 


    • Edited by Kyamit Wednesday, May 21, 2014 4:15 PM
    Wednesday, May 21, 2014 3:39 PM

All replies