Demo: amp-form

Form Submission with Page Reload

Form Submission with Page Update

Form Custom Validation: show-all-on-submit

Please enter your first and last name separated by a space (e.g. Jane Miller)

Form Custom Validation: show-first-on-submit

Please enter your first and last name separated by a space (e.g. Jane Miller)

Form Custom Validation: as-you-go

Please enter your first and last name separated by a space (e.g. Jane Miller)
Success!
Error!

Form Verification: as-you-go

That username is already taken Invalid character in username

Reset / clear form input

Hiding inputs after a successful submission

Success!
Error!
Success!
Error!

Input type="month"

Success!
Error!

Input type="week"

Success!
Error!

Input type="datetime-local"

Success!
Error!

Input type="time"

Success!
Error!

Input type="checkbox"

Success!
Error!

Input type="email"

Success!
Error!

Input type="hidden"

Success!
Error!

Input type="number"

Success!
Error!

Input type="radio"

Success!
Error!

Input type="range"

Success!
Error!

Input type="tel"

Success!
Error!

Input type="url"

Success!
Error!

Input type="password"

Success!
Error!

Input select

Success!
Error!