Select dropdowns
Select dropdowns
Hello.
Is there a way to add options in select dropdown e.g. via input?
For example, you have an input field, u pass a value and submit it. Then it appears in select options.
One more question. I tried to add a blank option as placeholdervalue, so that the default value is always empty. But it doesn't work quite correctly. Example below
By default its empty. Thats good. I select an option and create a row. Everything is fine.
Then I open "Add" menu one more time and its not empty. Value is already set.
I try to add a row without changing anything and an error pops up. Reselecting the same option fixes the error. How can i solve this?
My goal is to make smth similar to this
Thanks in advance!!
This question has accepted answers - jump to:
Answers
If this using Editor? You could look at Select2, that has options like that,
Colin
Thanks for the direction where to look. I was able to find what I needed. Can you please tell me how to implement select tagging (https://select2.org/tagging) in the table editor?
My code
Thanks in advance!
With the Select2 plug-in for Editor you can pass in configuration options for Select2 using the
opts
parameter for the field - so in this case:Allan