Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Restricting BPF to go backward

(0) ShareShare
ReportReport
Posted on by 1,299

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

  • Suggested answer
    Nishant Rana Profile Picture
    Nishant Rana 11,314 Microsoft Employee on at
    RE: Restricting BPF to go backward

    Workflow can also be used to restrict movement between stages 

    https://www.inogic.com/blog/2018/08/validating-bpf-fields-to-restrict-stages-through-oob-workflow-in-dynamics-365/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Restricting BPF to go backward

    So how did you prevent the BPF move?

  • PS Profile Picture
    PS 23,577 on at
    RE: Restricting BPF to go backward

    Awesome

  • Verified answer
    Davyjones Profile Picture
    Davyjones 1,299 on at
    RE: Restricting BPF to go backward

    Hi Prashant,

    I have got a solution by combining all the answers, i already have a workflow that changes another custom field based on the the BPF movement, so in the same workflow i have written another logic to check the custom field and then stop the action of the BPF.

    Though it does not hide the back button(which would be super awesome), i able to somehow restrict moving back with OOB functionality.

    Thanks

  • Suggested answer
    PS Profile Picture
    PS 23,577 on at
    RE: Restricting BPF to go backward

    Hi Davyjones

    Following URLs might help:

    www.neudesic.com/.../business-process-flows-crm-2013

    community.dynamics.com/.../220255

  • Davyjones Profile Picture
    Davyjones 1,299 on at
    RE: Restricting BPF to go backward

    Hi Suresh, for some reason its not working, please help.

  • hellosuresh Profile Picture
    hellosuresh 525 on at
    RE: Restricting BPF to go backward

    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');

  • Davyjones Profile Picture
    Davyjones 1,299 on at
    RE: Restricting BPF to go backward

    Hi Nithya,

    This time the error just says "undefined", i tried debugging the code after the debugger enters the first line its calling the exception.

    Thanks

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,076 on at
    RE: Restricting BPF to go backward

    Try the code below. 

    $("#stageBackActionContainer").on("click",function (e) {
                alert("Restricted Back Move!");
            });
  • Davyjones Profile Picture
    Davyjones 1,299 on at
    RE: Restricting BPF to go backward

    Hi Nithya,

    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

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.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans