Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : /UMtAqag3vZXqG+RP3E/1/
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

D365 UCI - banner warning/notification

Like (0) ShareShare
ReportReport
Posted on 30 Jun 2020 01:43:40 by 125

I have a question regarding the warning or notification banner that appears in UCI.

The warning banner appears as highlighted in the image.

That notification appears automatically. I could not find any related JS code where that banner is set or called.

Is there a way to change the background color of that banner?

4555.pastedimage1593481003955v1.png

In Legacy, the background color of the banner is this:

2728.pastedimage1593481277945v2.png

Is there a way to change the background color of the warning/notification banner?

a2z

  • imranakram1 Profile Picture
    20 on 10 Dec 2020 at 14:20:30
    RE: D365 UCI - banner warning/notification

    Hello, I've initiated an idea related to this here Microsoft Idea Â· Form Notification default color change and ability to customize it (dynamics.com)

    Please vote if you agree!

  • cloflyMao Profile Picture
    25,202 on 07 Jul 2020 at 06:10:27
    RE: D365 UCI - banner warning/notification

    Hi a2z,

    Having searched many links and pages in recent days, I am afraid that currently there is no OOTB setting for us to change their color.

    Regards,

    Clofly

  • a2z Profile Picture
    125 on 01 Jul 2020 at 20:15:24
    RE: D365 UCI - banner warning/notification

    I did something very similar to what you did as a last resort.

    However, I am trying to minimize or limit unsupported change and have instead informed the clients the banner colour is OOTB.

    Thanks

    a2z

  • cloflyMao Profile Picture
    25,202 on 30 Jun 2020 at 06:05:21
    RE: D365 UCI - banner warning/notification

    Hi a2z,

    Currently there is no OOB setting for us to change the background color of the warning/notification banner.

    You could change color with unsupported way, but the JavaScript function should be added to each form.

    My method is by injecting a custom CSS style node into HTML/document, the node contains rules to overwrite background color of banners, banner elements are selected by id and attribute selector.

    function createStyle() {
        var customStyle = '#footerWrapper > div { background-color: #fab1a0!important }';
        customStyle  = ' div[role="alert"] > li { background-color: #74b9ff!important }';
        var css = document.createElement('style');
        css.type = 'text/css';
        css.innerHTML = customStyle;
        parent.document.head.appendChild(css);
    }

    Result:

    1781.pastedimage1593496916163v1.png

    Regards,

    Clofly

  • Aric Levin Profile Picture
    30,188 Moderator on 30 Jun 2020 at 05:55:25
    RE: D365 UCI - banner warning/notification

    As far as I know there is no supported way to do this.

  • a2z Profile Picture
    125 on 30 Jun 2020 at 05:17:20
    RE: D365 UCI - banner warning/notification

    Thanks Aric. I am aware of the setFormNotfication but that banner appears automatically for inactive records.

    But my question is about that banner that is shown for inactive records. Can that banner background color be changed? Can someone confirm that this can't be changed?

    Thanks

    a2z

  • Suggested answer
    Aric Levin Profile Picture
    30,188 Moderator on 30 Jun 2020 at 04:13:14
    RE: D365 UCI - banner warning/notification

    That banner is only shown for Inactive records.

    When you display your own banners such as Information, Warning and Error banners you can use the setFormNotification and clearFormNotification functions:

    docs.microsoft.com/.../setformnotification

    These are the notifications you will see on the form. You pass the message, level and unique id. The level specifies the icon that will be displayed for INFO, WARNING or ERROR. The unique id is used for when you want to clear it.

    You can also use the Global Notification which is systemwide.

    docs.microsoft.com/.../addglobalnotification

    Hope this helps.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,364 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,524 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading complete