react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
Is there a way to create subforms?
Using isTouched to show error messages fails with schema
isTouched
brought me here. I'm using this meta property to surface the error message for the user at the right time.
I've adapted the example to show the issue I see: https://stackblitz.com/edit/vitejs-vite-offm7dia?file=src%2FApp.jsx
1. Touch the first optional input (click and blur). Notice the error messages get set for all fields (correct for the onBlur schema). isTouched
is correctly set to true for the first field and hence the relevant error message is visible....Submit form not working
Remix integration
Is focusing the first field with an error when validation fails after submitting a form possible?
Spread properties over an input field
{...register('fieldName')}
. Now the architecture is different on TSF, but is the a possibility to do something like:
```typescript
<form.Field
name="firstName"
children={(field) => {...Type errors when adding a validator zod schema and initializing the default value to null.
const schema = z.object({ month: z.coerce.date()})
const schema = z.object({ month: z.coerce.date()})
Handling nested object validations
zod
validations (more like a general issue). Im having a field like schema.output
. output
is like an object with different values object: { value: string, id: string}
and i want to use the AppField
object
and then display the errors inside. But whenever im accessing the "top level", meaning output
the errors are not there, because theyre happening on e.g. value
with min(1)
. unless i dig into field.form.state
and extract the errors from there, i dont see any way to handle those "complex" forms. Its crucial for me, because im running into many scenarios where i need to validate an object rather than one field from the object, since theyre quite complex objects.
cheers and thanks in advance 🙂...Philosophy w/ respect to design systems
We do not want you to use form.Field in normal app code, but instead wrap it into your codebase in a design systemWhy is this desirable, is it still the stance of the library? Not all inputs are form inputs; the value/onChange may just need to derive from normal state. I'm also not sure I want to tie my design system components to one particular form library. Curious to hear more context!...
Duplicate Errors when using same Schema for onChange and onMount validation
Use form Composition in solid js
Cant getFieldValue(array[idx]) ?
Form Composition - withForm - TypeScript error
withForm
(which is great), I decided to do a relatively simple test. Unfortunately, I am encountering a TypeScript error. So I would like to see if anyone knows if this is due to a problem of understanding on my part, or a potential bug that could be fixed....How to derive values to preserve form state integrity
Basic validation example
Relaunch validation even if there is already an error, and reset validation of certain fields
Get fieldMeta from array element
people[]
and need to see if people[i]
has any changes within it, there doesn't seem to be meta associated with that.
I either have the entire people
array isDirty or I can see specific subFields like people[i].name
is dirty, but no way to check if a particular element has any changes?...onSubmit callback does not get invoked - React Native
How do I type my form if I need to pass it to other components?
v.45.1 and type errors
