web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Is there any way to hide the Create new Quote Button on BPF.

(1) ShareShare
ReportReport
Posted on by 14
Hello Community, There is a requirement to hide the create button in BPF. So could you suggest to me some ways or some documentation links to hide it?
I have the same question (0)
  • Verified answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    This can be implemented via JavaScript.
     
    function onload(){
        //Get the HTML element of the BPF Opportunity Stage button.
        var opp_btn =window.top.document.querySelector("button[aria-describedby='MscrmControls.Containers.ProcessBreadCrumb-BPFStage_Description']");
        var nxt_btn;
        if(opp_btn!=null){
            //Determines if the obtained button is the Opportunity Stage button. If not then exit.
            if(!opp_btn.innerText.includes("Opportunity")){
                return
            }else{
                ListenToNextStageNextStage();
            }
        }else{
            //Continuously get the value of the Opportunity Stage button through callbacks until it is not null.
            setTimeout(onload,10);
        }
       
    function ListenToNextStage(){
        //Listen to the click event of the Opportunity Stage button.
        opp_btn.addEventListener("click",function fn() {
     
        //Get the Next Stage HTML element of the BPF Opportunity Stage.
        nxt_btn = window.top.document.getElementById("MscrmControls.Containers.ProcessStageControl-nextButtonContainer")
     
        if(nxt_btn!=null){
     
            HideCreateNew();
        }else{
     
            //Continuously get the value of the Next Stage button through callbacks until it is not null.
          setTimeout(fn,10);
        }        
        })
    }
     
    function HideCreateNew(){
            //Listen to the click event of the Next Stage button.
              nxt_btn.addEventListener("click",function fn1() {
     
                //Get the Create New HTML element of the BPF Opportunity Stage.
                var cnew_btn = window.top.document.getElementById("MscrmControls.Containers.ProcessStageControl-CreateNewContainer")
                     if (cnew_btn!=null) {
     
                        // Hide the Create New button
                         cnew_btn.style.display = "none";
                     }else{
     
                        //Continuously get the value of the Create New button through callbacks until it is not null.
                         setTimeout(fn1,10)
                     }
                 })  
    }
    }
     
    The final result is shown below.
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li
     
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    Hi,
     
    As per my understanding, you need to prevent users from creating quotes. Don’t you think it would be achievable by just revoking privileges?
     
    Thanks
    Regards,
     
     
     

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 94

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 69 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans