examples/amp-form-initialization-test.html
Test URL (or populate form manually and submit with button below)
| The following form fields have attribute data-allow-initialization, so their values should be set from the URL on page load. |
| Type | Field | Default value |
|---|---|---|
| <input type="color"> | ||
| <input type="datetime-local"> | ||
| <input type="email"> | ||
| <input type="month"> | ||
| <input type="number"> | ||
| <input type="range"> | ||
| <input type="search"> | ||
| <input type="tel"> | ||
| <input type="text"> | ||
| <input type="time"> | ||
| <input type="url"> | ||
| <input type="week"> | ||
| <input type="hidden"> | ||
| <input type="checkbox"> | 1 2 | 1 2 |
| <input type="radio"> | 1 2 | 1 2 |
| <select> | 12 | 12 |
| <textarea> | ||
The following form fields do not have attribute data-allow-initialization, so their values should not be set from the URL on page load. | ||
| Type | Field | Default value |
| --- | --- | --- |
| <input type="text"> | ||
| <input type="checkbox"> | 1 2 | 1 2 |
| <input type="radio"> | 1 2 | 1 2 |
| <select> | 12 | 12 |
| <textarea> | ||
| Sample layout hacking | ||
| :checked | checkbox |
This checkbox is
| | :invalid |
This input is
| | [type="hidden"][value="0"] |
Input value is
|
Submit