If a form has validation errors, how can I stop the UI action?

Reddy
Kilo Sage

Hello All,

 

On catalog task I've a section called change request information, in this section I'm validating CAB date via business rule after update. Please see below

 

Reddy_0-1693928010131.png

 

I have a "Create Change" UI action on the same task form that I want to stop submitting if the CAB date is incorrect. What script action must I execute?

 

1 ACCEPTED SOLUTION

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Reddy ,

 

You can apply the same logic in UI action as you applied in the Business rule for showing error. So if it is inside that error loop then don't create the Change else you can call thet Create Change function in UI action. 

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

View solution in original post

1 REPLY 1

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Reddy ,

 

You can apply the same logic in UI action as you applied in the Business rule for showing error. So if it is inside that error loop then don't create the Change else you can call thet Create Change function in UI action. 

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy