Display Info Message in Risk Assessment Page

Rajesh_P
Tera Contributor

Initially, a button has to be created in Risk Assessment Page through UI Actions. Whenever we click that button, an Info Message has to be displayed.

But is working in Classic UI but not working in Workspace as it is a '/subpage'.

 

2 REPLIES 2

AnugrahR_George
Tera Contributor

In Workspace subpages, standard server-side calls like gs.addInfoMessage() won't work automatically. You need to use the Workspace Client Script section on the UI Action instead: g_form.addInfoMessage()

Make sure Workspace Form Button is checked on the UI Action record and clear your browser cache after saving!

pratikjagtap
Giga Guru

Hi @Rajesh_P ,

 

This is expected behavior.

Workspace does not support classic UI Actions in the same way as the Classic UI, especially on subpages (.do pages). Methods like gs.addInfoMessage() or g_form.addInfoMessage() that work in the Classic UI often do not render in Workspace.

You have a few options:

  • Create a Workspace UI Action instead of a classic UI Action if the page is supported in Workspace.
  • If you're using a UI Page/subpage, use Now Experience components or the Workspace notification APIs instead of classic info messages.
  • If the Risk Assessment page is opened as a legacy subpage, standard info messages are generally not supported in Workspace. Consider displaying a modal, toast notification, or migrating the functionality to a Workspace-compatible page.

In short: This is a limitation of Workspace. Classic UI Actions and info messages on legacy subpages are not fully supported. The recommended approach is to implement the functionality using Workspace-specific UI Actions and Workspace notification mechanisms rather than relying on classic UI behavior.

 

If my response helped, please hit the 👍Thumb Icon and accept the solution so that it benefits future readers.

 

Regards,
Pratik