The CreatorCon Call for Content is officially open! Get started here.

List Collector onchange script not working

peter_repan
Tera Guru

Hi all,

in my catalog item I'm using List Collector with Variable attributes set as glide_list=true. This causes List Collector to display not as two lists, but as single list with search box.

find_real_file.png

I prefer this display, because records are not loaded during page load, but on demand in popup.

I would like to limit the number of selected records in the list and have my scripts prepared.

However, if I create onchange Catalog Client Script on this variable, the onchange is not fired when adding new records.

May it be, that onchange script on List Collector is not supported for this alternative display of List Collector?

Any ideas how can I limit the number of records in this type of List collector?

1 ACCEPTED SOLUTION

Hi Harsh,



which version of ServiceNow is running your instance? I have Helsinki and it does not work.


When I tried it on my personal instance which is Jakarta, then it works!


View solution in original post

10 REPLIES 10

Hi Harsh,



you are right, I didn't notice that.



However, when you are adding items via magnifier glass & popup window, the script is not working.


I would need to have reliable script for both cases.


sorry i did not understand. can you please explain it with screenshot?


Sure. If you use the Lookup icon and add record, the onchange event is not triggered.



find_real_file.png


Hi Peter,



when i click on magnifying glass and select the user then it gives me alert() .


Hi Harsh,



which version of ServiceNow is running your instance? I have Helsinki and it does not work.


When I tried it on my personal instance which is Jakarta, then it works!