You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We wanted our AMP email components to make post requests upon click of a <button> tag. It took us significant time to figure out that we needed an <input> child within the <form> to have the post request work. We tested that it would work if we changed our server endpoints to a handle a get request and we did not need the <input> child tag.
This should be clearly stated in the amp email documentation, so that it's clear for POST requests that we need an input tag. If this exists somewhere, could we point to that documentation since it's not very clear in the current amp form documentation.
Alternatives Considered
In the past, due to not being able to figure out the issue, we made our <form> make GET requests and just changed our server endpoints to handle GET requests, but definitely not ideal when the request we're making is more of a POST request.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Description
We wanted our AMP email components to make post requests upon click of a
<button
> tag. It took us significant time to figure out that we needed an<input>
child within the<form>
to have the post request work. We tested that it would work if we changed our server endpoints to a handle a get request and we did not need the<input>
child tag.This should be clearly stated in the amp email documentation, so that it's clear for POST requests that we need an input tag. If this exists somewhere, could we point to that documentation since it's not very clear in the current amp form documentation.
Alternatives Considered
In the past, due to not being able to figure out the issue, we made our
<form>
make GET requests and just changed our server endpoints to handle GET requests, but definitely not ideal when the request we're making is more of a POST request.Additional Context
No response
The text was updated successfully, but these errors were encountered: