Hello, i am facing some issues setting up a dynamic select dropdown.
I have a dynamic list of choices but i don't want the dropdown to have any default choice, i want him empty and then when the user can choose the option.
How can i do it?
Hello, i am facing some issues setting up a dynamic select dropdown.
I have a dynamic list of choices but i don't want the dropdown to have any default choice, i want him empty and then when the user can choose the option.
How can i do it?
Simply add an empty static option in the select.
I can do that when i have dynamic choices? I only see that option when is fixed options.
Yes you can do that:
The code generated is:
<select id="select1" class="form-select" dmx-bind:options="serverconnect1.data.query" optiontext="name" optionvalue="id">
<option value="">Select a value ...</option>
</select>
I tried that solution, but when i open the select it displays this:
And when i remove the "select a value" option it displays correctly.
Post the select menu code please
I changed from select dropdown to tagify and now it's working like i wanted. Thanks!