We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to show notification on the parent macroponent

RahulNagar
Tera Contributor

I'm trying to show an error notification on the record page from a contextual sidebar page using "NOW_UXF_PAGE#ADD_NOTIFICATIONS", but the notification appears under the sidebar, not on the main record page.

1 ACCEPTED SOLUTION

AttilaVarga
Mega Sage

Hi @RahulNagar,

 

I have seen a similar issue when I wanted to show a notification from a custom component. I would recommend the following steps:

  • Create an event handler in the main page’s body element.

  • Define a client script that shows the notification.

  • Attach the client script to the event you created earlier.

  • Emit this custom event from the contextual sidebar page.

View solution in original post

1 REPLY 1

AttilaVarga
Mega Sage

Hi @RahulNagar,

 

I have seen a similar issue when I wanted to show a notification from a custom component. I would recommend the following steps:

  • Create an event handler in the main page’s body element.

  • Define a client script that shows the notification.

  • Attach the client script to the event you created earlier.

  • Emit this custom event from the contextual sidebar page.