# Notifications Screen

Whether a notification is sent to all users or a unique user, those users need a way to view the notifications. This can be done through the Notifications Screen. This screen displays all notifications that a user has received. Notifications can be removed from this screen on a per user basis. This screen also contains an Admin Portal button that is shown when a user is also marked as an Admin (Admin? = TRUE) in the database.

With a couple of simple components, the Notifications screen is brought to life.

## The Components

### **List Component**

<figure><img src="https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FN2oTqsdSNwVsoOYGMEOc%2Fnotifications%20list.png?alt=media&#x26;token=3004c53c-8e27-4f40-b16c-58249b7c9eeb" alt="" width="563"><figcaption></figcaption></figure>

This component displays all the notifications that a user has received. There are a couple of filters on this list shown below:

<figure><img src="https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FFVjT7A0KQbBIYFOBKBpD%2Ffilter1.png?alt=media&#x26;token=17600bd6-c89b-48ef-a008-7bd629f9c090" alt="" width="348"><figcaption></figcaption></figure>

<figure><img src="https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FiOd4s5GuKI5rfDmToBr2%2Ffiltertwo.png?alt=media&#x26;token=4562b42c-12ce-4887-8ff8-0a14ef60a887" alt="" width="346"><figcaption></figcaption></figure>

This filter says the following:

* Display a list of all notifications IF…
* The Users Who Dismissed the current notification does not contain the Logged In User. As in, the current logged in user has not dismissed the notification before.
* AND the current notification is supposed to be shown to the Logged In User based on the User ID.
* OR the notification is marked as an Announcement and it has not been dismissed by the Logged In User.

⚡ **List Action**

* The ‘Cancel’ Icon Updates the Notification and adds the Logged In User to the ‘Users Who Dismissed’ Property.

### Admin Portal Button

<figure><img src="https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FaDNLtnfABzl9QrTdxUWb%2Fadminportalnotifications.png?alt=media&#x26;token=26eff49c-506e-4948-a873-d939b1984879" alt=""><figcaption></figcaption></figure>

The Admin Portal button only displays for users whose Admin? property is marked as TRUE.

⚡ **Button Actions**

* Link Action to ‘Notify All’ Screen
