You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature request comes from houseform/houseform#60, the older form library I maintained
Description
Ideally, I'd like to have a number, displayed as a string (say, a locale with 1,000,000) and then transform this number back during the field submission.
<Fieldname="number"initialValue={'0'}// This is the magictransformOnSubmit={v=>parseFloat(v)}onChangeValidate={z.coerce.number().min(1,'Must be at least 1')}/>
The text was updated successfully, but these errors were encountered:
Description
Ideally, I'd like to have a number, displayed as a string (say, a locale with
1,000,000
) and then transform this number back during the field submission.The text was updated successfully, but these errors were encountered: