You can build a custom form using the
amp-form component, but it takes quite a bit of work. That’s the topic of a future blog post, so subscribe for updates if you’re interested.
WPForms now supports AMP
WPForms Lite is a free, simple, and powerful WordPress form plugin. As of June 17th, 2019, it is fully AMP compatible.
All you have to do is have WPForms Lite and the official AMP WordPress plugin active on your site, and any forms you create with WPForms will automatically work with AMP.
AMP only works on HTTPS websites, so you’ll need an SSL certificate for the AMP plugin to work. Most web hosts will provide these for free.
AMP with WPForms Pro
The premium version of WPForms includes advanced form fields, conditional logic, newsletter forms, payment processing, and more. I use it on all of the sites I build.
// AMP support for forms in WPForms Pro
add_filter( 'wpforms_amp_pro', '__return_false' );
All of the forms on this site are built with WPForms and are running on a Native AMP website.
Here’s how I am conditionally showing/hiding form fields with AMP based on other field values. In my contact form, if you select “Other” or “Referral” as the source, a text field appears asking for more information.
- WPForms Custom Captcha
- WPForms Form Abandonment
- WPForms Offline Form
- WPForms Stripe
- WPForms Signatures
- WPForms Form Locker
- WPForms Core
- Conditional logic
- Date/time field
- Page break field
- Rating field
- Signature field
- Captcha field
- Likert field
- Net Promoter field
- Payments, Single item field
- Payments, Total field
Full AMP compatibility on its way
The premium version of WPForms will soon be 100% AMP compatible. If you’re familiar with the 80/20 rule, you know it took 20% of the effort to ensure 80% of forms built with WPForms could be AMP compatible.