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
Gravity Forms Entries Inventory Management - WPRiders Article

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:

Gravity Forms Entries Inventory Management - WPRiders Article
  • 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
Gravity Forms Entries Inventory Management - WPRiders Article

As a bonus for Gravity Forms Entries

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

Gravity Forms Entries Inventory Management - WPRiders Article

Enjoy.

Finally

At WPRiders, we know your website isn’t just a project—it’s part of your business engine ⚙️. That’s why we offer more than just code. From thoughtful WordPress custom development to dependable monthly WordPress maintenance, we’re here to support what matters most. Whether you’re planning a new build with custom WordPress website development 🛠️, looking for a reliable WordPress consultant 🧠, need and Elementor developer,or need ongoing support through our WordPress development service, we’d love to explore how we can work together.

If that sounds like what you need, 👉 Schedule a Free Discovery Call and let’s talk about your next move. We’re always up for a good conversation.

Navigate to

You Might Also Enjoy These Digital Marketing Articles:

Test If Flexslider Loaded
Test If Flexslider Loaded
Recently I had a mini project for a client and I had to test if Flexslider has been shown on the screen in order to further modify it. Subscribing to the startcallback didn’t work because the slider was shown by the theme and not by my code. jQuery(document).ready(…) didn’t work either. The slider was there, […]
Replace Comment Notification Email With Mandrill Template
Replace Comment Notification Email With Mandrill Template
Have you ever needed to replace the default email that WordPress is sending whenever a new comment is added? Recently I did. Here’s how I did it: To get this going you have to: Let me know if it worked for you.
Filter Custom Posts by Author in WP-Admin - WPRiders Article
Filter Custom Posts by Author in WP-Admin
Need to filter your Custom Post Types in WordPress by Author in WPAdmin? Here’s a handy way to do it by adding a new drop down for filtering: And here’s how it looks like: