Hi i enclosed the following code within Functions.php:
[php]
// http://www.gravityhelp.com/forums/topic/display-number-of-form-entries-left-per-form
// change 3 here to your form ID
add_filter('gform_pre_render', 'show_entries_left');
function show_entries_left($form) {
// get the number of entries for this form
$entry_count = RGFormsModel::get_lead_count($form['id'], "", null, null, null, null);
// subtract the entry count from the limit to determine how many are left
$left = $form['limitEntriesCount'] - $entry_count;
// append the number of entries left to the description displayed before the form
$form['description'] .= "Hurry! Only <strong>$left</strong> more entries will be accepted.";
// return the form
return $form;
However the figure it is showing for a 32 team entry is 21! I have no entries in there at the moment (as i deleted them) and if i set the limit entry to "off" it shows -11 remaining. It almost appears that the figure is being pulled from somewhere else. I have entered and deleted previous entries to ensure that if data forms and entries are lost it can be re-imported again via the backup of the tables and ftp. Any ideas as to why this is happening please? The code is set to show on all tables as a counter for all entries within those forms. website link: