Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Populate due date on Request assessment popup

SUSMITHA KRISHN
Tera Contributor

Dear Team,

I have a requirement to modify the Request Assessment popup in the risk module. Currently, when a user clicks Assess on a risk record, a popup is displayed where they can select assessors, approvers, and specify the number of days to overdue.

My requirement is to replace the "days to overdue" field with a Due Date field, enabling users to select a specific due date for the risk assessment directly from the popup.

Please help me in understanding the ways to modify popup and add due date.

Thank you.

SUSMITHAKRISHN_0-1777863508557.png

 

1 ACCEPTED SOLUTION

MeghanaAySo
ServiceNow Employee

Hi @SUSMITHA KRISHN,

 

Here are the details of the "Request risk assessment" modal that appears when you click on "Assess" in workspace

Declarative action for it is: /sys_declarative_action_assignment.do?sys_id=52c63210776b3010c4a4b0bdbd5a99a8

It opens a UIB page called "Trigger Risk Assessment" /now/builder/ui/edit/experience/c8b8d7c543113110ec6250d556b8f29c/8ed1670543513110ec6250d556b8f26f/565a57c943113110ec6250d556b8f294

 

You can see that each of the input fields of the modal have their own input components in the UIB page.

 

MeghanaAySo_0-1777915262784.png

MeghanaAySo_1-1777915291608.png

On click of the "Request assessment" button in the modal, a client script called "Create risk assessment" is triggered which calls a scripted rest api - '/api/sn_risk_advanced/riskasmntapi/triggerRiskAssessment'
/sys_ws_operation.do?sys_id=ef00ee17b7f23010580c1a4ece11a91f
This is where the fields are set when creating risk assessment, and where you would have to modify to add additional input fields.

 

Thank you,

Meghana

 

 

View solution in original post

5 REPLIES 5

Hey @SUSMITHA KRISHN , were you able to update the modal and add the date field? Are you able to populate the date field value in risk & assessment response? Can you share the steps?

 

Thanks!