Show an assessment as a popup on change request

Raghu Nampally1
Tera Contributor

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

4 REPLIES 4

rajeev17
Mega Guru

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

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Raghu Nampally1 

but why?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur , 

I need to implement, A custom assessment to show in a popup similar to Risk Assessment on change request.

Thanks!