How to limit a Client Script to work only on the Default view

tt-jtw
Kilo Expert

I have an   onLoad client script that I want to run only on the Default view of the incident table (not any other incident views).   What is the proper way to do this?

 

Should I keep the Global flag off and the View field empty? Or put some string in the View field like "default" or "Default"?

7 REPLIES 7

Jim Coyne
Kilo Patron

You should uncheck the Global field and enter the view name into the View field.   That should limit the script to that view only.


And if its the "Default" view, leave the View field blank?


No, put "default" in the View field.


Hmm... i've had problems before when I referenced the view name "default" in our code.   On the incident table, this seems to create a _new_ view with the name "default".   So, we try to avoid when we can.



I have configured it with Global OFF and View field blank.   This seems to be working as suggested.  



I'll go with that until I see that it isn't working.