Show an assessment as a popup on change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 07:09 PM
Hi All,
I have a requirement to show an assessment as a popup on change request, this has to be triggered after the Risk Assessment is completed.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 07:21 PM
Hi Raghu ,
Use a Business Rule or Client Script to monitor the completion of the Risk Assessment. For example, check if a specific field (e.g., risk_assessment_status) is updated to "Completed."
//sample business rule code
if (current.risk_assessment_status == 'completed') {
gs.eventQueue('trigger_popup', current, gs.getUserID(), '');
}
//now create a UI action or clientscript for popup
//clientscript
if (g_form.getValue('risk_assessment_status') === 'completed') {
var dialog = new GlideModal('custom_popup');
dialog.setTitle('Complete Assessment');
dialog.render();
}
// If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Thanks,
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 08:29 PM
Thanks @rajeev17,
I really appreciate your response.
I want to show a separate assessment with set of questions as a popup like Risk Assessment.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2025 09:16 PM
but why?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2025 04:58 PM
@Ankur ,
I need to implement, A custom assessment to show in a popup similar to Risk Assessment on change request.
Thanks!