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, 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.

Navigate to

You Might Also Enjoy These Digital Marketing Articles:

How to Choose a WordPress Design Agency - WPRiders Article
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 […]
Live Templates Provide Code Snippets Library in PhpStorm
Using Live Templates in PhpStorm, developers insert code snippets and provide values for parameters. For quite some time, PhpStorm has been one of the leading development tools, as it allows developers to apply their ideas into code with impressive speed. Among the features that stand out, PhpStorm’s ability to navigate between files and auto-complete keywords […]