October 2017
Intermediate to advanced
370 pages
8h 57m
English
AMP has built-in validation strategies that you can tap into by adding the custom-validation-reporting attribute to the form element, with one of these values:
Let's add this to our form element (/ch6/signup-validation.html):
<form method="post" action-xhr="/ch6/signup-xhr.php" target="_top" custom-validation-reporting="as-you-go"> ...</form>
We can also define custom validation messages ...
Read now
Unlock full access