I have difficulty with a taxonomy in form. In reality, this taxonomy could perfectly do without hierarchy (be like a label) but I have selected with hierarchy to have more flexibility in the form
But I still have problems, I would like this taxonomy to have a "select" format in the form, but I really can't set the placeholder or default value (both options are fine for me). I have already tried what appears in the official documentation, nothing seems to work or take effect (placeholder, value, select_text)
Thanks, it works, it even remembers the selected option if there is a validation problem. The only problem is that if the field is empty on ajax reload the placeholder disappears and the first available option is selected. It does not seem easy to solve since if we execute the code after an ajax load, what the user selected will be lost
Thanks for the option, I'll think about this a little more. But I am considering other paths, I think that the form will simply leave a text field, with the toolset filters I will work to add or create the terms of that taxonomy
Maybe in general you could consider improving that in the future, taxonomies in forms are not very flexible or have an interface that is too old for users (I am referring to taxonomies without hierarchy, for us it is normal to work with tags, but for the end user it's weird having to hit enter or click "add" to add a taxonomy)
I have decided to place a generic custom field in the form, thanks for the option. Please consider feedback to perhaps have more flexibility in the future in this regard.