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.

How to add list collector to the form

Sweety11
Kilo Contributor

Hello

Can anyone explain me, ow to add a list collector to a form

Thanks in advance

16 REPLIES 16

Anshu_Anand_
Kilo Sage

1. from menu option of the form click on configure ->form design

find_real_file.png

Drag the List field type from field types to the place where you want it.

find_real_file.png

 

fill out the reference field with the table you want

 

find_real_file.png

And save it

 

The list will be visible , when you refresh the form

find_real_file.png

 For more details about list collector, you can find here

https://docs.servicenow.com/en-US/bundle/sandiego-platform-user-interface/page/use/common-ui-element...

https://www.youtube.com/watch?v=5rT8ZeKbYck

If its helpful,please mark answer as correct

Regards,
Anshu

Thanks for the response Anshu.

I want to achieve below requirement can you please let me know how to do it

 

I want to bundle different RITM's which were present in different requests, how can I do that?

If I can select the multiple RITM's using list collector, how to do that

Ex:

Req1   RITM1    RITM1,RITM2,RITM3        Bun123

req2    RITM2     RITM1,RITM2,RITM3         Bun123

Req3   RITM3     RITM1,RITM2,RITM3        Bun123

Req4  RITM4      RITM4,RITM5                    Bun124

Req5   RITM5     RITM4,RITM5                     Bun124

 

Three logic i can think of:-

1. By logic, in a REQ , there are multiple RITM already attached as per the flow REQ->RITM->TASK

so you can directly reference in list sc_request table.

 

2. if you want exact requirement for above you have to create a custom table with all the fields

bundle(string) , Ritms(list collector) Req, Ritm and on main form , you can call this reference field

 

3. create another field on the form as choice list .

When Bun123 is selected, the list collector values selected should be RITM1,RITM2,RITM3.

when Bun124 selected RITM4,RITM5 is populated in list .

 

Hope its helpful

 

 

Regards,
Anshu

My actual requirement is where I have to add two fields in the RITM form 1. list collector ( for selecting multiple RITM's), 2. Bundle number ( where the bundle num can be auto generate or if I have selected same RITM bundle in that case bundle number should be auto populate).

Is there any script needed?

I hope my requirement is clear.

Thank you