Collection - selectedIndex

Is there a way to set the selectedIndex property of a collection via JS?

Can it be reset to null?

No, the selectedIndex property is not settable. If you want mutable state I'd recommend using a Temporary State variable, which you can find in the left panel of the Retool Mobile editor.

Screenshot 2023-06-20 at 9.22.23 AM