Thanks first of all for creating this awesome project!
While trying to integrate autoform into a project of mine, I came across a limitation of the select field.
The Problem
I have some data from a api that gets fetched on pageload with custom data.
It looks something like this:
I am not sure why this is, but this seems very unintuitive, especially when working with values that are not just simple 'one value' enums.
Solution?
Is there a way to work around this? Or even improve the Code to allow for the value to be validated not the label?
Or using a different (custom) datatype, an array of objects with label & value attributes for example
Thanks first of all for creating this awesome project! While trying to integrate autoform into a project of mine, I came across a limitation of the select field.
The Problem
I have some data from a api that gets fetched on pageload with custom data. It looks something like this:
I want to display the name of the field in the select menu, and when submitting it should pass the id.
In the docs I found this sentence:
I am not sure why this is, but this seems very unintuitive, especially when working with values that are not just simple 'one value' enums.
Solution?
Is there a way to work around this? Or even improve the Code to allow for the value to be validated not the label? Or using a different (custom) datatype, an array of objects with label & value attributes for example