We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0e8d0d commit da57d9fCopy full SHA for da57d9f
src/routes/(v2)/v2/submit-json/+page.svelte
@@ -9,7 +9,8 @@
9
taintedMessage: false,
10
dataType: 'json',
11
validators: zod(schema),
12
- onSubmit({ jsonData }) {
+ onSubmit({ jsonData, validators, formData }) {
13
+ if (formData.has('skip')) validators(false);
14
jsonData({ ...$form, email: 'no-email' });
15
}
16
});
@@ -35,6 +36,7 @@
35
36
{#if $errors.email}<span class="invalid">{$errors.email}</span>{/if}
37
</label>
38
<div>
39
+ <input type="checkbox" name="skip" /> Skip client-side validation<br />
40
<button>Submit</button>
41
</div>
42
</form>
0 commit comments