Back to Amphtml

amp

examples/amp-form-initialization-test.html

latest1.9 KB
Original Source

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. |

TypeFieldDefault 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 21 2
<input type="radio">1 21 2
<select>1212
<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.
TypeFieldDefault value
---------
<input type="text">
<input type="checkbox">1 21 2
<input type="radio">1 21 2
<select>1212
<textarea>
Sample layout hacking
:checkedcheckbox

This checkbox is

| | :invalid |

This input is

| | [type="hidden"][value="0"] |

Input value is

|

Submit