October 21, 2013: Added "format" parameter which supports either a "comma" or "decimal" value for formatting the number of entries left.
I’ve had many users ask me about this since I published the Display Number of Entries Left… snippet back in April. I wrote a follow up article which demonstrated how to display this entry limit in the sidebar. Special thanks to Ty who pointed out this would be much better served as a shortcode.
After installing this snippet, you will be able to retrieve your form’s entries left with the following shortcode:
[gravityforms action="entries_left" id="your_form_id"]
How do I install this snippet?
Easy peasy. Just copy and paste the code above into your theme’s functions.php file.
How do I use this shortcode?
Very carefully. I’m kidding. Fire at will. Just enter your form ID and the shortcode will return the number of entries left.
The Shortcode
[gravityforms action="entries_left" id="your_form_id"]
Example
[gravityforms action="entries_left" id="2"]
How’d we do?
If you use it and like it, let us know. We’d love to hear the different ways you found this code useful!
Continue Reading about Shortcodes
If you’re looking for more information about Gravity Forms shortcodes — including all the different types, shortcode parameters, and how to get started using each, check out our comprehensive guide on Gravity Forms Shortcodes.
Did this resource help you do something awesome with Gravity Forms?
Then you'll absolutely love Gravity Perks; a suite of 47+ essential add-ons for Gravity Forms with support you can count on.
Hello,
nice feature to show the remaining amount of form submissions left. It works perfectly. However, is there a way to add some custom text before and/or after the counter?
So that for example, it will say: XXX submissions remaining.
Cheers in advance.
Andre
Hi Andre,
You can add your custom text before or after the shortcode wherever you decide to place it. Rough example:
Helloooo :-)
I have installed the snippet and it works ! However, I have several reccurring events, created seperately and the snippet indicates the total of registries. Let me explain further :
1/ I have 4 events , Monday, Tuesday, Wednesday and Thursday. 2/ Each of them have a max entries of 48. 3/ John booked Monday, and Mary booked Thursday (= minus 2 entries) 4/ ALL my 4 entries show 46 (which is 48-2).
Why de deduction is not made on the day registered only ? Which should be MON 47, TUE 48, WED 48 and THU 47 ?
Thank you for your Help in this :-)
Tania
Hi Tania,
I think that is a better fit for GP Inventory. It lets you set limits on the individual items and/or dates on your form. You can then display the number remaining, and with scoped inventory that number is context aware of the current selections in the form.
Greetings great! the question is can filter the count according to members or users, ie showing the count for each user seperatedly. Regards
Hi,
From what I understand this is not supported, but this tutorial could work for you Gravity Forms Progress Meter. If you have an active Gravity Perks License, you can get in touch with us via our support form so can dig into this.
Best,