ft_api_show_submission_count
API
This function displays the number of submissions in a form. It takes a second optional View ID parameter that limits the count to those results in a particular View. This is only needed for those instances where you've created a View that uses a filter to show a subset of the form submissions, e.g. the number of male applicants or the number of submissions that have been sent to a particular department in your company.
The function takes the following required parameters:
<?php
echo ft_api_show_submission_count($form_id);
?>
Or, if you're specifying a View:
<?php
echo ft_api_show_submission_count($form_id, $view_id);
?>
You would call it in your webpage (a PHP page) by embedding the following code. Note that you'll need to replace 4 and 6 with your form and View IDs:
<?php
echo ft_api_show_submission_count(4, 6);
?>
To use the submission count value in your own code, just store it in a variable, like so:
<?php
$num_submissions = ft_api_show_submission_count(4, 6);
?>