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

Amp-form requires child input tag for post requests #38706

Open
AndyLi-Asana opened this issue Mar 8, 2023 · 0 comments
Open

Amp-form requires child input tag for post requests #38706

AndyLi-Asana opened this issue Mar 8, 2023 · 0 comments

Comments

@AndyLi-Asana
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants