-
Notifications
You must be signed in to change notification settings - Fork 694
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 xhr amp-mustache not displaying returned json #1222
Comments
@pbakaus @CrystalFaith So sorry but thanks for the kick to get this solved :) Make it a nice day. You all deserve it. |
@IamAlta - Glad to hear your issue was resolved! Thanks for reaching out (and closing a resolved issue :) ) |
Description of the issue found on ampproject.org
amp-form xhr amp-mustache not displaying returned json vars
Please provide:
Page link: https://www.ampproject.org/docs/reference/components/amp-form#success/error-response-rendering the first example under "Success/error response rendering".
Description of the documentation issue:
I coded the first example under "Success/error response rendering".
How do we reproduce the issue?
Please provide the steps to reproduce the issue:
On page https://www.ampproject.org/docs/reference/components/amp-form#success/error-response-rendering the first example under "Success/error response rendering" was coded.
See here for code: https://codepen.io/iamalta/pen/vVyErX
The returned json is
[{"name":"Jane Miller","interests":[{"name":"Basketball"},{"name":"Swimming"},{"name":"Reading"}],"email":"email@example.com"}]
Expected behavior
Should get the following for the above example with the mustaches completed.
"Success! Thanks {{name}} for subscribing! Please make sure to check your email {{email}}
to confirm! After that we'll start sending you weekly articles on {{#interests}}{{name}} {{/interests}}."
This is what is displayed - missing name and start date.
"Success! Thanks for subscribing! Please make sure to check your email to confirm! After that we'll start sending you weekly articles on ."
What browser are you using?
Chrome and Firefox recent vers.
What O/S are you using? n/a
The text was updated successfully, but these errors were encountered: