How do I change the error message of a UI Policy?

Emily Jorgie
Mega Explorer

In Agile 2.0, when the user wants to change the status from draft to something else and there is nothing in the acceptance criteria, an error message appears saying "A UI Policy has prevented you from making a change."


I want to edit this to say that "Acceptance Criteria is required" or something along those lines. I'm new to this- can someone help me?

1 REPLY 1

Sunil B N
ServiceNow Employee
ServiceNow Employee

Goto UI policy, and convert this to Client script and add an error message of your choice when field is left blank.

g_form.addErrorMessage("Acceptance Criteria is required.")