Set value in List view from Client script

snowuser111
Kilo Guru

Hi,

How do I set value based on certain field selected in List view from Client script.

If 'state' is changed to 'Cancel' , the 'Assignment group' should change to certain value. (All from List view)

Thanks

11 REPLIES 11

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

HI,



You can write onCellEdit client script as per your req.


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


Hi Pradeep,



Its working for forms (g_form). I wanted for setting values in List view.


g_form not working for List view. Can you let me know for list view please.new to scripting.



Thanks


Why don't you try Data Look up rules



Data Lookup and Record Matching Support - ServiceNow Wiki


-Anurag

Hi Anurag,



Actually is it possible to do it from Client script as my client script is working and I wanted to change certain other fields from list view.As in snap shot below if I change the Ci state, owner group should change.



Thanks


List edit.png