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 46+ essential add-ons for Gravity Forms with support you can count on.
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,