You can download the latest /dist code directly from our GitHub repository v0.0.4-alpha (latest).
Don't forget to give us a ⭐ if you think FormaJS is worthwhile and we should continue improving on it.
Built-in Client-side Validation Errors
Validate form fields before submission on the client-side and get validation error messages displayed to the end-user.
CSS
Using a custom CSS stylesheet build on top of the forma-boilerplate.css template. Take a look at the code on our GitHub repository.
HTML
<form class="forma">
<input data-label="Email Address" type="email" name="email-address" required />
<input data-label="First Name" type="text" name="first-name" minlength="3" required />
<input data-label="Last Name" type="text" name="last-name" minlength="3" required />
<textarea data-label="Message" rows="5" name="message" required></textarea>
<button type="submit">Send</button>
</form>
JavaScript
forma({
submit: true
});