
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2017 11:39 PM
Hello Everyone,
I have a requirement whenever i select a category of "Network" in incident table i must auto-populate 2 users name like user#1 , user#2 in watch list
Please help me out how to achieve this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 12:19 AM
Hi Abdul, IN client script use
var a = "sys_idof user1" + ","+ "sys_id of user 2";
g_form.setValue("watch_list", a)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 01:01 AM
Hi Abdul,
That BR wont run for the other condition. But do you want the watchlist to become empty when Category changes from Network to some other, then write a onchange Client script of category as
if(newValue != "network"){
g_form.setValue("watch_list","");
}
This will make the Watchlist field empty.
let me know in case you have any query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 05:57 AM
Hi Abdul,
Instead of hard coding sys_id's of users use property and store the users sys_id's there call it in the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 08:20 PM
Hi Abdul,
If your question is answered , please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2017 03:17 AM
Sneha i marked it as Correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2017 12:38 AM
Well you can still mark the correct answer by changing the discussion to a question
dan.bruhn, You help will be much appreciated here.
Thank You
Please Hit Like, Helpful or Correct depending on the impact of response