Request for amp-form and extended template reference by id
See original GitHub issueAs it is done in amp-list, allow amp-form to select an extented template like this
<form method="post"
action-xhr="https://ampbyexample.com/components/amp-form/submit-form-input-text-xhr"
target="_top"
template="amp-template-id">
<input type="text"
class="data-input"
name="name"
placeholder="Name..."
required>
<input type="email"
class="data-input"
name="email"
placeholder="Email..."
required>
<input type="submit"
value="Subscribe"
class="button button-primary">
</form>
<template type="amp-mustache"
id="amp-template-id">
{{my_variable}}
</template>
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Documentation: <amp-form> - amp.dev
The amp-form extension allows you to create forms ( <form> ) to submit input fields ... by using the template's id as the...
Read more >How to create AMP for Email forms in Salesforce Marketing ...
In order to capture and process the data sent from the AMP form, we'll need to create the following: A Data Extension to...
Read more >AMP Form always showing submit-error, even on response ...
Even if I skip all handling of data sent and just write response with the code 200 as is said in AMP form...
Read more >The tag 'FORM' requires including the 'amp-form' extension
That's also the case of FORM and INPUT elements, which can be only used if you include a script reference to the amp-form...
Read more >Working with Angular 5 Template Reference Variables - ITNEXT
A template reference variable is often a reference to a DOM element within a template. It can also be a reference to an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the CSS selector was not well received, so we moved to an attribute instead, like
I was not sure what Dima meant by that, but if I had to imagine I would say that the
amp-mustache
extension would expose arender
action that might take a data structure like thesubmit-success
response and the id of a container optionally that would receive the rendered content.This is a high priority issue but it hasn’t been updated in awhile. @danielrozenberg Do you have any updates?