Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Forms Docs to reflect availability #5815

Merged
merged 1 commit into from
Oct 28, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions extensions/amp-form/amp-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
</tr>
<tr>
<td width="40%"><strong>Availability</strong></td>
<td>Experimental</td>
<td>Stable (Custom Validation still experimental - See below)</td>
</tr>
<tr>
<td width="40%"><strong>Required Script</strong></td>
Expand Down Expand Up @@ -93,7 +93,7 @@ This attribute can be the same or a different endpoint than `action` and has the
All other [form attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) are optional.

**custom-validation-reporting**
__(optional)__
__(optional)__ __(experimental)__
Enables and selects a custom validation reporting strategy, valid values are one of `show-first-on-submit`, `show-all-on-submit` or `as-you-go`.

See [Custom Validation](#custom-validations) section for more details on this.
Expand Down Expand Up @@ -202,6 +202,7 @@ One of the main differences between `:invalid` and `:user-invalid` is when are t
See the [full example here](../../examples/forms.amp.html) on using these.

## Custom Validations
__(experimental)__
`amp-form` provides a way for you to build your own custom validation UI with few validation reporting strategies available to choose from `show-first-on-submit`, `show-all-on-submit` or `as-you-go`.

The general usage of this is you first set `custom-validation-reporting` attribute on your `form` to one of the validation reporting strategies and then provide your own validation UI marked up with special attributes, AMP will discover these and report them at the right time depending on the strategy selected.
Expand Down