I have a 10 stage single entity business process flow. I have fields on the main form that get made read only once they have been completed and the stage progresses past a certain point.
I know how to set the fields (Xrm.Page.getControl("header_process_" + field).setDisabled(true);), and I can amend the disabled option for fields are on the current stage.
However if I click onto a previous stage none of the jscript has been enfprced.
I have a workaround , which is to isolate each stage in its own process flow and dynamically progress through them (My stages are linked to the status reason..hidden the next/prev button).
But wondered if anyone knew a fix as its not the most elegant of solutions, also does the field level security roles get enforced as I cant see the key on the BPF.
Thanks in advance/