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.

How to debug UI Policies or UI Policy Actions in ServiceNow Next UI

Community Alums
Not applicable

Hi All,

 

Please provide the detailed steps or documentation where I can look how to debug the UI Policy in Next UI (Sandiego Version).

 

Thanks,

Raghu

1 ACCEPTED SOLUTION

kamlesh kjmar
Mega Sage

Hi @Community Alums ,

 

This is officialy documented that Field watcher and Javascript debug window is not supported with Next Experience in Sandiago and onwards.

KamleshKumar3_3-1668589442878.png

 

 

You can debug UI policies using below method:

 

1. Open module debug UI policies

 

KamleshKumar3_0-1668589129370.png

 

2. Now open the form that you want to debug. right click on the form and open inspect option

 

KamleshKumar3_1-1668589250982.png

 

 

3. In the console, you will see all the UI policies working on your form and what changes it is doing to which field.

 

KamleshKumar3_2-1668589341164.png

 

4. Once you are done with your testing, open stop debugging module and it will close the debugging

kamleshkjmar_0-1668589862125.png

 

 

 

I hope this helps.

 

Please hit helpful if this helps and Accept if this solves your issue.

 

Regards,

Kamlesh

 

View solution in original post

4 REPLIES 4

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Community Alums ,

Please check below article :-

Debugging UI Policies 


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

Community Alums
Not applicable

Hi @Gunjan Kiratkar 

Could you please let me know on how to enable this JavaScript Log or Field Watcher on the next UI.

Hi @Community Alums ,

When we after we make the field watch then the bug icon is present their, If we click on that then it will open that Field Watcher but I can see that it is not opening in next UI.

It is know issue, for more info please read below thread -

Field Watcher in New UI 

 


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

kamlesh kjmar
Mega Sage

Hi @Community Alums ,

 

This is officialy documented that Field watcher and Javascript debug window is not supported with Next Experience in Sandiago and onwards.

KamleshKumar3_3-1668589442878.png

 

 

You can debug UI policies using below method:

 

1. Open module debug UI policies

 

KamleshKumar3_0-1668589129370.png

 

2. Now open the form that you want to debug. right click on the form and open inspect option

 

KamleshKumar3_1-1668589250982.png

 

 

3. In the console, you will see all the UI policies working on your form and what changes it is doing to which field.

 

KamleshKumar3_2-1668589341164.png

 

4. Once you are done with your testing, open stop debugging module and it will close the debugging

kamleshkjmar_0-1668589862125.png

 

 

 

I hope this helps.

 

Please hit helpful if this helps and Accept if this solves your issue.

 

Regards,

Kamlesh