Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

Posted on by 1,320

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to hide Close/Cancel case buttons when case is resolved?

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

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: How to hide Close/Cancel case buttons when case is resolved?

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

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: How to hide Close/Cancel case buttons when case is resolved?

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans