Move the values from left to right in list collector variable which is slush bucket by default, when form is loaded.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2020 10:13 AM
Hello, I have a requirement to move the values from left to right in a list collector variable (which is slush bucket), when a form is loaded. I have tried different possibilities but no luck. Can anyone help me out?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 10:40 PM
few points:
if you want to use slush bucket then on portal it won't work.
if you are only implementing it on native UI then below blog will help you, make sure you set "isolate script" as false on your catalog client script
https://www.servicenowguru.com/scripting/client-scripts-scripting/move-list-collector-options/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 11:14 PM
Hi Harshavardhan,
We need the slush bucket implementation in Native UI but service portal.
I have tried the script from this blog but it is not working.
Thanks,
Santhosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 11:25 PM
did you check "isolate script" as false on your catalog client script ? can you add screenshot of your catalog client script ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2020 03:32 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2020 03:48 AM
can you add alert() to validate the length ?
eg:
alert(selectedOptions.length);