Questions tagged [amp-form]

29 questions
2
votes
1 answer

I have an AMP form but for some reason it has error while submitting

I have am AMP site with amp-form component and for some reason just cant get the form to submit. The error on console https://prnt.sc/shu7i0 and network error https://prnt.sc/shu85g. You can also take a look at the live site here…
1
vote
0 answers

How to define c# controller using action-xhr of Amp-form

How can I write a c# controller for amp form action-xhr in below code?
1
vote
0 answers

AMP form method change from POST to GET

I have a AMP page with contact form: As you can see, the method is set to POST. But on my server side implementation (PHP), data from this form are sent via GET method. echo…
1
vote
0 answers

How to Assign back submit-success JSON response to the clicked event in the PHP loop. amp-form, amp-bind

on submit-success, form returns a JSON response and I am trying to add the response to the clicked tag [class]="wishstatus" but it is getting added to all the tag since it is in the PHP loop. is there any solution to add the JSON response to the…
Azcoding
  • 11
  • 1
1
vote
0 answers

How to change input value on amp-autocomplete select

Trying to create a live search with redirecting to url on amp-autocomplete select.
la_petite_kozel
  • 826
  • 5
  • 26
1
vote
1 answer

amp-form verification doesn't work, even with official documentation code

I'm trying to implement custom field verification on an amp-form component, but all my efforts are in vain. Although the XHR request returns a valid JSON, it doesn't invalidate the field and there is no error message displayed. I tried the code from…
1
vote
0 answers

AMP Form - input [value] won't allow concat() function

In AMP Form, I am trying to fill in a hidden input field based on a form response. The response is an array inside of a JSON object. When I try to pull in the information into a div's [text] attribute, it works. But in the input's [value] attribute,…
1
vote
1 answer

AMP4EMAIL: Setting Form Values from State in Templates

I'm seemingly unable to dynamically set a a form input field's value via the [value] attribute while using amp-bind within an amp-mustache template. This issue only occurs in the Gmail client. It works as expected within the Gmail Amp Playground and…
heyron
  • 117
  • 7
1
vote
1 answer

amp-form post action-xhr response stripping image tag

I am trying to display an image from an amp-form response. When I inspect the dom on reply the amp-img tag seems to get stripped. form.php