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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

D365 UCI - banner warning/notification

(0) ShareShare
ReportReport
Posted on by 129

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

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at
    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.

  • a2z Profile Picture
    129 on at
    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

  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at
    RE: D365 UCI - banner warning/notification

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

  • cloflyMao Profile Picture
    25,210 on at
    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

  • a2z Profile Picture
    129 on at
    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,210 on at
    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

  • imranakram1 Profile Picture
    20 on at
    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!

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

Responsible AI policies

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

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 109

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 109

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans