We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const form1validatorObj = z.object({ field1: z.string().min(100, {message: "form 1 error"}) }) const form2validatorObj = z.object({ field2: z.string().min(100, {message: "form 2 error"}) }) const { form: form1, errors: errors1 } = createForm({ extend: reporter({ single: true }), validate: (values) => { return validateSchema(form1validatorObj)(values); } }); const { form: form2, errors: errors2 } = createForm({ extend: reporter({ single: true }), validate: (values) => { return validateSchema(form2validatorObj)(values); } }); $: console.log($errors1, $errors2)
<form use:form1> field 1 <input type="text" name="field1"> <div id="field1-validation" data-felte-reporter-dom-for="field1" aria-live="polite" /> <form use:form2> field 2 <input type="text" name="field1"> <div id="field2-validation" data-felte-reporter-dom-for="field2" aria-live="polite" /> </form> </form>
i am trying to use one form inside of another form but when i have errors in form 2 they are not shown in the dom
felte (Svelte), @felte/validator-zod, @felte/reporter-dom
@felte/reporter-dom: ^1.1.5
@felte/validator-zod: ^1.0.13
felte: ^1.2.7
i have a svelte form, inside of which i am calling another svelte form
The text was updated successfully, but these errors were encountered:
one workaround for this is to use @felte/reporter-svelte package
@felte/reporter-svelte
Sorry, something went wrong.
pablo-abc
No branches or pull requests
Describe the bug
i am trying to use one form inside of another form but when i have errors in form 2 they are not shown in the dom
Which package/s are you using?
felte (Svelte), @felte/validator-zod, @felte/reporter-dom
Environment
@felte/reporter-dom: ^1.1.5
@felte/validator-zod: ^1.0.13
felte: ^1.2.7
Additional context
i have a svelte form, inside of which i am calling another svelte form
The text was updated successfully, but these errors were encountered: