Change the "ALL" value in dropdown that is connected to filter collection

When a dropdown is set to filter a collection it automatically creates a label called “ALL” how do I change the label value if I want it to say anything other than “ALL”?

I used an input dropdown element and set it to filter my collection without any code (i.e. basic studio functionality) everything works great, but that created a label called ALL which is nice, but I want to change that label.

I tried to do that with some VELO, but I am not sure if the code is ok,
or the label “ALL” is not really a label (i.e not [0])

import wixData from “wix-data”;

$w.onReady(function () {

let opts = $w(“#dropdown1”).options;
opts[0].label = “כל הדוכנים”;
$w(“#dropdown1”).options = opts;

});

I am sure this is some easy solution I am missing
But I didn’t find any info on that in the forums or Google.

Any help is appreciated,
Thanks

Hey thank you so much for your reply,
Unfortunately I get “TypeError: $w(…).onReady is not a function”
As it says “Property ‘onReady’ does not exist on type ‘dropdown’”

$w.onReady(function () {
$w(“#myDataset”).onReady(() => {
let opts = $w(“#dropdown1”).options;

    if(opts.length > 0 && opts[0].label === "ALLE") {
        opts[0].label = "Alle Händler";
        $w("#dropdown1").options = opts;
    }
});

});

The above code is the correct solution.
Thank you so much!

:slight_smile: