in Workspace Modal dialog boxes where need to open ? Native UI assessment Metric table can see .
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
in Workspace Modal dialog boxes where need to open ? Native UI assessment Metric table can see but workspace same dialog box where need to see and how to update the dialog box or Modal?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
17m ago
The architecture for modal dialog boxes is completely different between the Native UI (Core UI) and Workspace.
In the Native UI, modals are typically built using GlideModal or GlideDialogWindow to display a UI Page. However, these APIs do not work in Workspace. Workspace uses the Next Experience framework, which handles modals via the g_modal API or directly through UI Builder components.
Here is how you can locate, view, and update the Assessment Metric modal (or any modal) in a Workspace environment.
- Where to find the Modal in Workspace
Depending on how your specific Workspace was built, the modal is located in one of two places:
A. In a Workspace UI Action (using g_modal)
If the modal is triggered by a button on the form (like "Take Assessment"), check the UI Action record:
If the modal is triggered by a button on the form (like "Take Assessment"), check the UI Action record:
- Navigate to System Definition > UI Actions.
- Find the button you are clicking.
- Look at the Workspace tab on the UI Action.
- If the Workspace Client Script is checked, look for the g_modal.showFrame() or g_modal.showFields() API.
- If it uses showFrame(), it is pulling in a standard Native UI Page (often assessment_take2 for assessments) via an iframe.
B. In UI Builder (Configurable Workspaces)
If you are using a modern Configurable Workspace (like ITSM, CSM, or HR Workspace), the modal might be a built-in component on the page itself.
If you are using a modern Configurable Workspace (like ITSM, CSM, or HR Workspace), the modal might be a built-in component on the page itself.
- Navigate to Now Experience Framework > UI Builder.
- Open your specific Workspace and navigate to the page where the button is clicked (usually the Record page).
- Look at the Content Tree on the left side.
- Scroll down to the Overlays or Modals section. If a custom modal was built for this workspace, it will be listed here.
- How to Update the Modal
How you update the modal depends on what you found in Step 1.
Scenario A: Updating a g_modal.showFrame() UI Page
If the Workspace UI Action is using g_modal.showFrame({ url: 'your_ui_page' }), the modal is just a wrapper displaying a Native UI Page.
If the Workspace UI Action is using g_modal.showFrame({ url: 'your_ui_page' }), the modal is just a wrapper displaying a Native UI Page.
- To update it: You simply navigate to System UI > UI Pages, find the UI Page referenced in the URL, and update the HTML/Client script there. The changes will reflect in both the Native UI and the Workspace iframe.
- Note on Assessments: If this is the out-of-the-box Assessment page, the actual questions and layout are driven by the Assessment Metrics and Metric Categories tables. Updating the metric records automatically updates the UI in both views.
Scenario B: Updating a UI Builder Modal
If the modal lives inside UI Builder under the "Overlays" section:
If the modal lives inside UI Builder under the "Overlays" section:
- Open the modal in the UI Builder Content Tree.
- The modal will appear in the center canvas. You can drag and drop new components (text, buttons, containers) directly into it.
- Use the Configuration panel on the right to change text, styling, or data bindings.
- To change what happens when a button inside the modal is clicked (e.g., "Submit Assessment"), select the button, go to the Events tab on the right, and update the Event Handlers (such as Save Record or Close Modal).
Summary Checklist for Assessments
- If your goal is simply to change the questions, weights, or text of the Assessment itself, you do not need to touch the modal code. You just need to update the data in the Assessment Metric (asmt_metric) table. The Workspace modal is designed to dynamically read those metrics and render them automatically.
- If your goal is to change the behavior of the popup window itself (size, title, buttons), you must edit either the Workspace Client Script on the UI Action or the Overlay in UI Builder.
Please Accept the Solution if the above solution helped you resolve it. Thank you in advance!