• Resolved prash159

    (@prash159)


    On the page, at the bottom, there was a single field form for subscription.
    After update the amp, Form is not rendering and only Green box is visible.

    Below is the code from the admin -> widget panel -> AMP footer -> Custom HTML

    <div class="amp-sticky" id="amp-subscription">
    <span class="amp-sticky-close" on="tap:amp-subscription.hide"><span>close</span></span>
    <form class="mailchimp-subscription-form" 
      method="POST"
      id="mailchimpsubscriptionform"
      action-xhr="https://thegreenfund.com/wp-json/xxxx/v1/xxxxx"
      target="_top"
      custom-validation-reporting="show-first-on-submit"
    >
    <h5 class="amp-subscribe-head">Learn More. Reach New Highs...</h5>
    <div class="form-group email-subscription">
    <div class="form-field">
    <input name="formData[name]" value="Investor" type="hidden">
    <input autocomplete="off" type="text" name="formData[email]" placeholder="My email address is..." />
    <button type="submit"><i class="icon-send"></i></button>
    </div>
    </div>
    <input type="hidden" name="ampForm" value="amp">
    <div submitting>
    <template type="amp-mustache">
    Please wait...
    </template>
    </div>
    <div submit-success>
    <template type="amp-mustache">
    {{message}}
    </template>
    </div>
    <div submit-error>
    <template type="amp-mustache">
    {{message}}
    </template>
    </div>
    </form>
    </div>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    We checked your issue. Previously we allow all types of form sanitizer in AMP. But the users can get so many validation errors. After we updated our code. Now you need to add class name ampforwp-form-allow for sanitizing the form. Can you please add the class name to your form?
    Like this: <form class=”mailchimp-subscription-form ampforwp-form-allow”>

    Thread Starter prash159

    (@prash159)

    Thank You.. ??

    Its working!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form not rendering after update AMP from version 0.9.98.8 => 1.0.18’ is closed to new replies.