Not applicable

Hi @matthew_hughes ,

It's because, you are using 2 things at the same time, which is a script and "Catalog UI policy actions" simultaneously.

You need to understand :

Execute if true [Advanced view] A script that executes when the conditions of the UI policy are fulfilled.
  • This field is available only if Run scripts is selected.
  • This feature is not available outside the scope or in global scope.
Execute if false [Advanced view] A script that executes if the conditions of the UI policy are not fulfilled and the Reverse if false option is selected.
  • This field is available only if Run scripts is selected.
  • This feature is not available outside the scope or in global scope.

 

Now, if you are using the above scripts, and it fulfils your requirement, then don't use "Catalog UI policy actions", make it active false.

As per you screenshot, the Catalog UI policy actions is working not the script.

 

Hi @Community Alums 

 

I've now made two UI Policies:

 

matthew_hughes_0-1707899154976.png

 

matthew_hughes_1-1707899193823.png

 

Whilst it does make the field Read only when it correctly should, it's not adding the value of 'Not Applicable'

 

 

Not applicable

Dr Atul - LNG
Tera Patron

Hi @matthew_hughes 

 

All experts already answered, i am new to script and I thought the NOT applicable should be replaced by value.

****************************************************************************************
Regards
Dr Atul G. - Learn N Grow Together ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
******************************************************************************************

Service_RNow
Mega Sage

Hi @matthew_hughes 

Sulotion:1 Please try to make a change UI Policy Run order if you using 2 UI Policy same at a time.

Sulotion:2 Try with On change Client script in same approach what you have done in UI Policy.

 

Please hit the Thumb Icon and mark as Correct !!