Schedule a Free Consultation

Gravity Forms Entries Inventory Management

Read Article

Ever needed to limit the number of entries in a Gravity Form? Like, for booking a given number of places in one shot/submission or buying 3 tickets for an event, etc.

Here’s an example:

  • I have a 10 places event
  • Someone comes to the website and buys 3 tickets (in 1 submission)
  • Another one buys 6 tickets
  • And the last person buys 1 ticket (the last one)
  • The form automatically closes

I wrote a small WordPress plugin that does just that:

  • takes an input field, let’s call it number of places
  • sums all the values from all form entries from the number of places field
  • if the sum of number of places equals the total number of available places, the the form stops taking more entries.

To use this plugin you have to:

 

  • Go to Form Settings (NOT Global Gravity Form Settings) and
    • Check “Enable entry limit”
    • Set your limit for this form in “Number of Entries” field
    • Set yor message in “Entry Limit Reached Message” field
    • Save settings

As a bonus, the plugin will also check if the current input value in a form is not greater than the remaining number of places:

 

Enjoy.

Navigate to

Check some other articles we wrote

Translate Plugin From Child Theme
Translate Plugin From Child Theme
Ever needed to translate some strings from a plugin so as to be able to further upgrade the main plugin without loosing your translations? I did. This is because there some languages around for which there are no default translations in plugins like WooCommerce Social Login or WooCommerce Bookings. Unfortunately there’s no standard way to […]
How to choose a WordPress Design Agency
Choosing the right WordPress design agency is crucial when creating a website that will be your business forefront. A good website should bring visitors and help convert these visitors into customers for your business. With design agencies for WordPress, many options are available, but this doesn’t mean all are good for you. So deciding which […]
How To Test If Customers Will Pay For The Product You’re Building
You’ve had this business idea for a while now. You’ve even held debates with yourself on whether it’s worth the risk. Not to mention that you’ve been looking for ages to find practical and secure ways to test your ideas. But you still don’t know what the next step is. I know the feeling, I’ve […]