Disclaimer: This site is moderated by the Formidable Forms community. Formidable Forms and its parent company Strategy11 are not responsible for the words, opinions, and content posted by others on this site. This site is provided as a courtesy and free resource for the Formidable Forms Community. Any actions deemed as harassment, toxic or abusive, will result on being banned from this site and potentially losing your Formidable Forms license.
Thanks for your cooperation, if you have any questions please
consult our code of conduct
replied 2 years ago
It seems like a simple thing to do but I am having trouble. How do I auto count the total number entries submitted via a form and then display that total on a home page? example is 10 forms submitted and the total shows in a defined section on the home page. thanks
Staff replied 2 years ago
You can create a custom shortcode like the following:
add_shortcode('entry-count','my_entry_count';
function my_entry_count($atts){
$entries = FrmEntry::getAll(array('it.form_id' => X)); // replace X with your form id
return count($entries);
}
Staff replied 2 years ago
You can also use FrmEntry::getRecordCount("fr.id = '84'"). Replace the '84' with your form id.
replied 2 years ago
Thank you both. Got it.