Update a field in change request form when risk assessment is submitted

Narmadha PR
Tera Contributor

When a risk assessment is submitted in a change request form and If the score of the assessment is 21 or higher then the Field should be set to TRUE. Can anyone help me on this?

3 REPLIES 3

SK Chand Basha
Giga Sage

Hi @Narmadha PR 

 

Can you check this it might be helpful

 

https://www.servicenow.com/community/itsm-forum/risk-assessment-not-updating-change-request-risk-fie...

 

Mark it Helpful and Accept Solution !! If this helps you to understand.

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Narmadha PR 

 

For this you need to Code actually, OOTB we can set impact and Risk not other field.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Community Alums
Not applicable

Hi @Narmadha PR ,

For this problem please create onSubmit client script on change_request table and add below sample code.

var riskValue = g_form.getValue('risk_assessment');
if(riskValue > 21){
	g_form.setValue('field_name', true); // this field may be true/false field 
}

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak