I have 7 records in my list collector, I want all to be selected by default in the list collector

Bibi Amena Say1
Tera Contributor

 

I have 7 records in my list collector, I want all to be selected by default in the list collector..

 

@Misbah Sayyed1

@Maik Skoddow
@Mark Roethof
@Gaurav Shirsat
@ghaing
@tltoulson
@Ankur Bawiskar
@Chuck Tomasi

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Bibi Amena Say1 

then in default value give all those 7 sysIds

sysId1,sysId2,sysId3,sysId4,sysId5,sysId6,sysId7

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

NotNowBoss
Tera Guru

Hi,

If its the same sysid for all the 7 records over time, just put it in as etc.

 

record1sysid,record2sysid,record3sysid

 

If the 7 records might change over time and is different.  (Not tested on catalog items/Record producers)

 

javascript: getValue(); function getValue(){var gr = new GlideRecord('your_table_name'); gr.query(); if(gr.next()){return gr.sys_id;}}

 


Another way would be making a onLoad client script and use Ajax
Make an client callable script include function that returns the 7 sysid comma seperated.