This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
isEmail, | |
isMaxLength, | |
isMinLength, | |
isRequired, | |
} from "./validators.mjs"; | |
export function formValidator() { | |
let submitBackend; | |
return { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form | |
hidden | |
name="contact" | |
method="POST" | |
data-netlify="true" | |
netlify-honeypot="bot-field" | |
data-netlify-recaptcha="true" | |
> | |
<label><input type="text" name="name" /></label> | |
<label> <input type="email" name="email" /></label> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form name="contact" method="POST" data-netlify="true" netlify-honeypot="bot-field" data-netlify-recaptcha="true"> | |
<p hidden> | |
<label>ignore: <input name="bot-field" /></label> | |
</p> | |
<p> | |
<label>Full Name: <input required type="text" name="name" /></label> | |
</p> | |
<p> | |
<label>Email: <input required type="email" name="email" /></label> | |
</p> |