0

It's not clear from the Interactive Components section in the documentation. https://amp.dev/documentation/components/amp-story/#interactive-components.

I'm trying to create a poll within an amp-story, but doesn't seem to be a clear path to it. I tried to hack it with amp-consent, but that's not really working.

4

2 回答 2

2

To create a poll, you'd need amp-form component which you can't use for amp-stories See this list of which components are allowed.

Note that stories are meant to deliver content in an immersive way, not to necessary run polls or collect info.

于 2019-09-20T20:46:01.047 回答
-1

Remember that the amp sepcification reqwire a user interaction to trigger an script. event listener like window load or document completet are not allowed on a amp html page.

于 2019-09-21T18:19:20.947 回答