Commit 0b6b775
root
fix: improve ContactForm configuration and validation for FormSubmit
- Convert ContactForm to Client Component with 'use client'
- Use absolute URLs for redirect (required by FormSubmit)
- Add acceptCharset='UTF-8' for proper character encoding
- Add _template='table' for better email formatting
- Improve honeypot field with proper styling and attributes
- Add client-side form validation with user feedback
- Add onSubmit handler to validate before sending to FormSubmit
This should resolve the 'Form should POST' error by ensuring proper FormSubmit configuration.1 parent e839f38 commit 0b6b775
1 file changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
8 | 24 | | |
9 | 25 | | |
10 | 26 | | |
11 | 27 | | |
12 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
13 | 39 | | |
14 | 40 | | |
15 | 41 | | |
16 | 42 | | |
17 | 43 | | |
| 44 | + | |
| 45 | + | |
18 | 46 | | |
19 | 47 | | |
20 | 48 | | |
21 | | - | |
| 49 | + | |
22 | 50 | | |
23 | 51 | | |
24 | | - | |
| 52 | + | |
| 53 | + | |
25 | 54 | | |
26 | 55 | | |
27 | 56 | | |
| |||
0 commit comments