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.

UI Policy not working on Change form

SN_Learn
Kilo Patron
Kilo Patron

Hi All,

 

On the change task form UI policy is not working.

I have created a UI policy that makes the work notes mandatory when the change is an emergency & implementation status is either 'successful with issues' or 'failed'. This change_task opens in the emergency view and it is not working instead of giving the work notes it is giving an error message.

The following mandatory fields are not filled in: Work notes

 

Screenshot 2023-09-29 181748.png

 

The above screenshot shows that the change task is in emergency view and it is not even showing a red asterisk mark so show that work notes is mandatory.

If I will change the view to default then it is working fine with the same UI policy.

 

In the emergency view, when I am trying to close the task and error comes up then in the browser's console the below error comes up:

SN_Learn_0-1695991852271.png

 

Could anyone please assist with this issue to resolve it? Thanks.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.
1 ACCEPTED SOLUTION

SN_Learn
Kilo Patron
Kilo Patron

Thanks, Voona for the response.

 

I had already tried the solution that you proposed and it was not working. I have investigated and found out that the issue was not related to the UI policy that was making the 'work notes' mandatory.

The issue was with another UI Policy that we created, in which there was a DOM manipulation script that was showing an error in the browser's console.

 

Upon removal of that, the issue was resolved. Thanks.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

View solution in original post

2 REPLIES 2

Voona Rohila
Mega Patron
Mega Patron

Hi @SN_Learn 

Can you share the UI policy you configured?

Also check if the view selected is correct ot not.

VoonaRohila_1-1695996620787.png

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

SN_Learn
Kilo Patron
Kilo Patron

Thanks, Voona for the response.

 

I had already tried the solution that you proposed and it was not working. I have investigated and found out that the issue was not related to the UI policy that was making the 'work notes' mandatory.

The issue was with another UI Policy that we created, in which there was a DOM manipulation script that was showing an error in the browser's console.

 

Upon removal of that, the issue was resolved. Thanks.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.