Display Info Message in Risk Assessment Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
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