rubenf
rubenf17mo ago

Select feature

The select bug i wasn't sure what you meant, seems more like a feature than a bug to auto select the first choice. You can always create an empty first choice
5 Replies
Sindre
Sindre17mo ago
So my usecase is that I show a list of courts and the player choose the court they are going to play. And I have added a scripts that takes the user to the "choose player tab" when a choice is made. I could of course add a empty value as the first and in my script say that it should not go to second screen on a empty value. The select also had a placeholder value that could be removed if it's always chooses the first value. I can take a video of it tomorrow to better highlight how it behaves
rubenf
rubenf17mo ago
👍 thanks
Sindre
Sindre17mo ago
I'm not sure the video help much in understanding the issue, i think you understand it. But here it is, I want to make my case again 🙂 you can also find it on https://app.windmill.dev/public/holstad-disc/aaab0bd6d93ea98c3434003a52408a29 for now. I can work around this by adding a empty/default value and check after that. It's just that I have never seen a select that choose the first option for you. I think it can lead to some problem, where a developers assume that a field is filled in, but then script have just choosen the first for you. Like a country select, it's never pre filled with Algeria (first country on a I remembered). I think you want the user to take a action, at least most of the time.
rubenf
rubenf17mo ago
What i'm gonna do is just make it a config done now no more excuse for the golf disc app the people need it
Sindre
Sindre17mo ago
🫡