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.

Selecting single record from List Collector

Abbas_Ahamed
Tera Contributor

Hi @Ankur Bawiskar,

 

I hope you are doing well. I have a question about catalog variables. I created a list collector for available software, and I want all available software to be shown in the available list. When I select multiple records, I want to be able to choose only one software in the selected list. How can I set this up? I already wrote an "onchange" client script, but it isn't working as expected.

 

Screenshot:

Abbas_Ahamed_0-1762343493047.png

Abbas_Ahamed_1-1762343537588.png

Thanks,

Abbas

2 ACCEPTED SOLUTIONS

@Abbas_Ahamed 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

Hi @Abbas_Ahamed 

 

Hope my answer helpful.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Abbas_Ahamed 

that's OOTB behavior for list collector.

it allows user to select multiple records at once.

selecting only 1 is not possible.

if you want only 1 to select then why not use reference variable?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Abbas_Ahamed 

A List Collector allows a user to select more than one value — this is the expected behavior.
If you don’t want multiple selections, it’s better to use a Reference type field instead.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Abbas_Ahamed 

 

Hope my answer helpful.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Abbas_Ahamed
Tera Contributor

Hey @Dr Atul G- LNG , @Ankur Bawiskar .

 

Thank you for your responses. I'm aware of the OOB functionality, but for my scenario, I need this specific process. Could you help me resolve the script issue?

 

Thanks,

Abbas