Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need to make field mandatory on Resolving of Incident

SN Rookie
Giga Expert

Hi,

My requirement is to make a custom field (u_risk_event_raised) mandatory when ever the state is set to 'Resolved' and Impact/Urgency IS NOT 4/Critical,High,Medium,Low and 3/Low.

We are not using Priority field on the form so it cannot be utilized.

I've tried UI policy and client script but it's not working. Can someone help here?

1 ACCEPTED SOLUTION

Sanjay Bagri1
Tera Guru
Tera Guru

Hi ,

 

See this screen shot here i have only three type impact and urgency

find_real_file.png

 

Other then 3 impact or urgency and also state is resolved then only tp field will make mandatory

find_real_file.png

 

 

other wise not make mandatory .

Thanks

 

 

View solution in original post

9 REPLIES 9

Refer below screenshot and please make neccessary changes according to your requirement,

find_real_file.png

SN Rookie
Giga Expert

Ram - The issue is not with State condition, the Impact/Urgency combination values is what's making it complicated.

 

 

 

please try one more time:

find_real_file.png

 

Sanjay Bagri1
Tera Guru
Tera Guru

Hi ,

 

See this screen shot here i have only three type impact and urgency

find_real_file.png

 

Other then 3 impact or urgency and also state is resolved then only tp field will make mandatory

find_real_file.png

 

 

other wise not make mandatory .

Thanks

 

 

Here i have written UI policy .

if you have four types then you can use that value .

i think above screen shot  will work .

 

Thanks

Sanjay Bagri