Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2023 12:29 AM
The purpose of list collector is to select more than 1 records . Can we populate an alert message to select more than 1 record in list collector ServiceNow. Kindly let us know the update asap.
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-16-2023 03:49 AM
HI @Sowmya ,
I trust you are doing great.
You can do it using the client script on change one.
Once the value is changed into the list collector it will be passed to the backend where it will be shown as comma seperated sysIds for the reference.
var glideList = g_form.getValue('<glide list field>');
It will give output as sys_id1,sys_id2.
Then you can split it as given below :
var glideListArray = glideList.split(',');
if (glideListArray.length > 2) {
alert ('Invalid')
}
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2023 03:48 AM
Thank you so much its working