Question

I'm trying to implement One-Click Actions for Gmail using a 'Confirm Action'. The developer page specifies a 'requiresConfirmation' option [if true, additional confirmation is required before the handler executes]. I tried setting this to 'true', but didn't work.

How is this supposed to work? I'm using the following markup

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "EmailMessage",
  "description": "Verify your email address",
  "action": {
    "@type": "ConfirmAction",
    "name": "Verify Email Address",
    "handler": {
      "@type": "HttpActionHandler",
      "url": "https://mywebsite.com/verify?email=info@mywebsite.com",
      "requiresConfirmation": true
    }
  }
}
</script>

The schema validates at Schema Validator. Any help would be appreciated. The above code works otherwise.

Was it helpful?

Solution

The requiresConfirmation flag is not supported yet. I'll make sure the documentation is updated to reflect the current status.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top