Skip to main content
June 12, 2023
Solved

Notification bell

  • June 12, 2023
  • 16 replies
  • 0 views

Hello everyone,

I would like to implement a notification bell on an interface, that would show me notifications, similar to the facebook one attached, where if I click on it I see notification messages.
I found a link to the post docs.appian.com/.../ux_messages_comments.html but it doesn't suit for my case: I don't want to take up additional space in my interface, nor is it nice in terms of user experience.

Thank you very much in advance

Best answer by sanchitg0002

Here it is

a!localVariables(
  local!notifications: {
    {
      name: "Sanchit Gupta",
      eventName: "Case Progress",
      eventDetails: "Still waiting for Review",
      date: today(),
      time: time(now()),
      
    },
    {
      name: "Alberto",
      eventName: "New Request",
      eventDetails: " How much time it takes approximately for request to be completed?",
      date: today() - 1,
      time: time(now()),
      
    }
  },
  a!sectionLayout(
    label: "Notification",
    labelIcon: "bell",
    iconAltText: "Bell Icon",
    labelSize: "MEDIUM_PLUS",
    labelHeadingTag: "H2",
    labelColor: "#147E82",
    contents: {
      a!forEach(
        items: local!notifications,
        expression: a!cardLayout(
          contents: {
            a!sideBySideLayout(
              items: {
                a!sideBySideItem(),
                a!sideBySideItem(
                  item: a!richTextDisplayField(
                    labelPosition: "COLLAPSED",
                    value: {
                      a!richTextIcon(icon: "calendar"),
                      a!richTextItem(
                        text: concat(" ", property(fv!item, "date", null))
                      )
                    }
                  ),
                  width: "MINIMIZE"
                ),
                a!sideBySideItem(
                  item: a!richTextDisplayField(
                    labelPosition: "COLLAPSED",
                    value: {
                      a!richTextIcon(icon: "clock-o"),
                      a!richTextItem(
                        text: concat(" ", property(fv!item, "time", null))
                      )
                    }
                  ),
                  width: "MINIMIZE"
                )
              }
            ),
            a!sideBySideLayout(
              items: {
                a!sideBySideItem(
                  item: a!stampField(
                    text: left(property(fv!item, "name", null), 1),
                    backgroundColor: "#0C5659",
                    size: "TINY"
                  ),
                  width: "MINIMIZE"
                ),
                a!sideBySideItem(
                  item: a!richTextDisplayField(
                    labelPosition: "COLLAPSED",
                    value: {
                      a!richTextItem(
                        text: property(fv!item, "name", null),
                        size: "MEDIUM",
                        style: "STRONG"
                      ),
                      char(10),
                      a!richTextItem(
                        text: property(fv!item, "eventName", null),
                        style: "STRONG"
                      ),
                      a!richTextItem(
                        text: concat(
                          " ",
                          property(fv!item, "eventDetails", null)
                        )
                      )
                    }
                  ),
                  width: "10X"
                )
              }
            )
          },
          style: "#E9F5FE",
          shape: "SEMI_ROUNDED",
          showBorder: false()
        )
      )
    },
    isCollapsible: true
  )
)

16 replies

harshitb6843
June 12, 2023

You will have to look up for inspiration and create one. As far as functioning is concerned, you can write your notifications and show it on the interface. Why do you need this btw? What is your use-case and what type of notifications do you want to show here?

June 12, 2023

Hi Harshit, thanks for the reply. I have to notify the user if a task (rapresented as a row in Read-Only Grid Component) change a field in a column from one state to a specific one. So i want him to have a notice like "The task with xxx ID is reassigned" or something similar

mathieud0001
June 12, 2023

This is not possible. I think your best bet is to have a small widget on the right or left of the interface as in the last example in the inspiration page.

[View:https://docs.appian.com/suite/help/23.2/sail/inspiration.html]

June 12, 2023

Hi Mathieu, thanks for the feedback

June 12, 2023

Are you just looking for a design to implement this in Appian? You can show 'em like this in a side section on your site page.

June 12, 2023

Hi Sanchit, thanks for the reply. Is this screenshot present somewhere in the documentation. If it possible, can you give me the url please? Thanks in advance

June 12, 2023

I took this from one of the projects I worked on, If you want I can share the code.

aminw4267
July 26, 2024

+1 for this feature, with floating toast notifications 

September 4, 2025

A similar functionality is totally possible using out of the box functions since weird things can happen when components are not given enough screen space. But it's not recommended since the results change as screen size / zoom changes. It would be far better if Appian gave us a built-in global notification function.

stefanhelzle0001
September 4, 2025

A simple stamp field with background set to white.

September 4, 2025

This one's wildly off the original topic, but still along the lines off squished components. I did this a couple of years ago to appease some UX designers. I ran out of ideas on how to get the right side to be fully rounded, so we removed the right stamp and blended the rectangle to the right-hand side of the page.

.