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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to hide Close/Cancel case buttons when case is resolved?

(0) ShareShare
ReportReport
Posted on by 1,328

When the case is resolved, I want to hide the Close case, Cancel case buttons on the form. How do I do this in portal? Is there a config setting or does it require javascript?

77150.Capture.png

*This post is locked for comments

I have the same question (0)
  • Verified answer
    cloflyMao Profile Picture
    25,210 on at

    Hi LearningCRM,

    As you see in screenshot below, the case information form includes the 3 buttons at its bottom is a whole element and is loaded dynamically.

    t001.png

    Thus a timer is needed to grab the button elements,

    we could instead simply hide those buttons with CSS rules, so javascript is not necessarily required.

    1. The partial URL has a path name /edit-case/, so we can find it in Web Page > Web Template

    2. There is already a style tag in source code(if not, just add it), so we just paste CSS rule below:

    .close-case-link {
    display: none;
    }
    .cancel-case-link {
    display: none;
    }

    t002.PNG

    Result:

    t003.PNG

    However, in my opinion, your employees or account users may lost access to manage to close or cancel their case,

    so you could add custom JS code on same web template to check any condition before you decide to hide them.

    Regards,

    Clofly

  • epark06 Profile Picture
    1,328 on at

    Thanks, just realized those buttons don't appear for end-users when it is resolved, so no JS needed.

  • Community Member Profile Picture
    on at

    I want to add these buttons in my portal. Can you please explain me how to add these buttons .

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans