#Most elegant way to use useForm with the Select component for number values
3 messages · Page 1 of 1 (latest)
when working with the values, you can simply call parseInt() on them:
3 messages · Page 1 of 1 (latest)
Hey! I'm using useForm with initialValues set to an item I get back from an API. One of the field is a number and should be chosen via a select component. However, the Select component only accepts string values. Any classic way to solve this without complement bypassing ...form.getInputProps() ?
when working with the values, you can simply call parseInt() on them: