Skip to main content
Microsoft Dynamics CRM forum

Change the automatic "Draft" subject name - SaveAppointmentAsDraft

editSubscribe (0) ShareShare
Posted on by 6
We have turned on the AllowSaveAsDraft setting on Appointments. After doing this, the Appointment name gets an automatic /[Draft]:/ text added to the front of the subject name (See image):
I would like to remove this.
This might be an obvious question, so all replies all very much appreciated!
  • Verified answer
    Dengliang Li Profile Picture
    Dengliang Li on at
    Change the automatic "Draft" subject name - SaveAppointmentAsDraft
    You can remove the draft prefix with JavaScript.
    function onload() {
            // Gets the HTML element for the title of the appointment entity.
           let title="h1[data-id='header_title']");
            //If the title's HTML element is not null.
                let title_text = title.innerText;
                if(title_text.includes("[Draft]: ")){
                //If the title contains the /[Draft]: / prefix, remove this prefix.
                    title.innerText = title_text.replace("[Draft]: ","")
            //If the title's HTML element is null, it is refetched every 10 milliseconds until it is not null.
    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

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans