Back to Amphtml

Forms Examples in AMP

examples/bind/forms.amp.html

latest602 B
Original Source

Submit the form and then press a button to change the text in the below template

1234

$0

Color Selection: red

Enter your name and email.

Set name/email with amp-bind and submit (chained action) Your nameYour emailYour choiceredgreenblueyellowYour offer $100 $200 Success! Thanks {{name}} for entering your email: {{email}}

You have selected: No selection

Error! Failure to register: {{name}} : {{email}}

You have selected: No selection

Form validation with amp-bind input values

set txt clear
MISSING VALUE

Success! Thanks {{name}} for submitting this message: {{message}}