Notifications
Announcements
No record found.
Hi,
Is there a way of restricting BPF to move backwards. Which is the user should not be able to go to the previous stage and should only be able to move forward.
Thanks.
*This post is locked for comments
Hi Davjones,
There is no default way to achieve your functionality. You have to write custom business logic using plugin or custom workflow to achieve it.
Hi DavyJones,
Please refer the link below.
debajmecrm.com/.../prevent-user-from-moving-to-previous-stage-in-crm-2013-business-process-flows
It describes how to prevent the user from moving to the previous stage in CRM 2013 Business Process Flows using Javascript code on-load of the form.
HI Nithya,
Thanks for your response, i tried this and when the form loads it throws an error that its undefined, i tried debugging the Jscript and its in "$(“#stageBackActionContainer”).hide();" stating "Uncaught SyntaxError: Invalid or unexpected token". Please help
If you have copied the code as itself, the double quotes used may be a problem behind this syntax error. Please copy the following code.
function hidePreviousStageButton(stageBackActionContainer, stageAdvanceActionContainer) { $("#stageBackActionContainer").hide(); $("#stageBackActionContainer").html(""); $("#stageAdvanceActionContainer").css("width", "90px"); }
Hi Nithya,
This is exactly how i have the jscript, not sure whats wrong, should i be passing any parameters in the Jscript to execute?
Thanks for your time
Can you now try the following code to check if it is working?
function restrictBPFPreviousMove() { var originalPreviousStageHandler = $("#stageBackActionContainer").data("events")["click"][0].handler; $("#stageBackActionContainer").unbind("click"); $("#stageBackActionContainer").click(function (e) { alert("Restricted Back Move!"); }); }
Thank you very much for your efforts, I tried the code above and i am getting an error "Unable to get property "Click" of undefined or null reference. Should i be including any libraries for this to work.
Thanks again for your help
Try the code below.
$("#stageBackActionContainer").on("click",function (e) { alert("Restricted Back Move!"); });
This time the error just says "undefined", i tried debugging the code after the debugger enters the first line its calling the exception.
Thanks
Open the developer tools (F12) and try to find the button and make css display to none. If that works, find the id of Back button and try to hide using jquery.
I'm using following code to hide back button in Dynamics CRM 2013 on-premise
$('#stageBackActionContainer').hide();
$('#stageBackActionContainer').html('');
$('#stageBackActionContainer').css('width', '0px');
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2