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.

Write script on list view

xiaix
Tera Guru

Trying to write a Client Script (onLoad) for a table list view is not working.   How can this be done?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

Hi David,



onLoad client scripts only run when the form is loaded, not in a list. The only type of client script that applies to a list is onCellEdit.



http://wiki.servicenow.com/index.php?title=Client_Scripts


View solution in original post

13 REPLIES 13

How to display the Fruit and color on service catalog???



1. Fruits will be available on u_fruit table


        F_ID         F_Name


        1                   Orange


        2                   Berry



2. Colors will be available on u_color table


        F_ID         COLOR


        1                   Orange


        2                   RED



My requirement here is display fruits and colors as below


1. Orange         Orange/RED < Drop down list>


2. Berry             Orange/RED <Drop down list>



User will select the correct color of fruit and if he selects any color as wrong then I need to send notification.



Please provide/suggest me to achieve this functionality.


I like fruit, it's true... guilty.   I'm not a fan of unrelated (completely off-topic) random posts, as fruity as it sounds.   Here's a juicy one though.. I can't seem to figure out how to replace the backup rear passenger-side taillight of my Jeep Grand Cherokee (2002).   It's like trying to get the seeds out of a watermelon.   My attempts have not been fruitful, and I'm literally going bananas!   Any insight would be greatly appreciated.


Hi @xiaix  ,

 

Thank you for the script. Could you please let me know where the script can be used? Like in a client script or in a UI script, etc..

 

I also have the same requirement but I am stuck with no solution

MuraliKChintha
Tera Expert

Hi @xiaix  ,

 

Thank you for the script. Could you please let me know where the script can be used? Like in a client script or in a UI script, etc..

 

I also have the same requirement but I am stuck with no solution