WordPress Easy Modal and Gravity Forms

gravity forms and modalIf you are looking to create a modal box on your site with a gravity form, there is one issue we have run into a few times that can cause you a lot of headaches.  The people at Gravity Forms recommend using Easy Modal for modal boxes with WordPress.

In the first instance, we were trying to create a two step gravity form in a modal box trigger by someone asking for a quote.  You might have seen examples like this on many different websites.  The problem was that when you clicked the next button, easy modal would close the window so you never got to see step two.

In the second instance, we were trying to create a simple one page quote form to fill out.  The problem came that if you didn’t enter a field correctly, for example a phone number, the modal box would close.  The user would have no idea if the form actually was submitted or not.  If you clicked the quote box again, the modal reappears and you can see the errors in the gravity.  Most people likely would not do this and think the form was submitted.

After contacting modal forms and trying several ideas, the solution was very simple.  All you need to do is add ajax=true to the shortcode in Gravity Forms Short Code.  This will allow gravity forms to submit, but not close the window.

For example, if your code is
[html][ gravityform id="3" name="Quote Request" title="false" description="false" ]  change the code to: [ gravityform id="3" name="Quote Request" title="false" description="false" ajax=true ] [/html]
and your problem will be solved.

Hopefully this tip will help save you a lot of time and headaches.

Are Google Ads Pay Per Click?

By Dave Fogel | December 2, 2022

Yes, Google Ads operates on a pay-per-click (PPC) basis. This means that businesses will pay for each click that is generated by their ads. The cost of each click will depend on the type of campaign and the targeting options selected. Google Ads also offers businesses access to powerful analytics and reporting tools, allowing them…

Why would someone use Google Ads instead of Facebook Ads?

By Dave Fogel | November 28, 2022

Let’s talk about Google Ads and Facebook Ads.  Each has its own pluses and minuses.  Here is how we see it. Google Ads is intent-based. What does intent-based mean? Simply put, people know what they are searching for and are going to find it. For example, if I am looking to tint my car, I…

What is Search Engine Optimization? Will a Plug-in Do it For me?

By Dave Fogel | September 3, 2020

Search Engine Optimization or SEO is the process of optimizing your website for keywords related to your business—for example, Jacksonville Web Design Company. It involves added your keywords in the page title, descriptions, and strategically in the content. That part of the process is called on-site optimization. The other part of SEO is called Off-page…

Posted in

Dave Fogel

Leave a Comment