Hi there. I have a GF form that takes submissions and pushes the info to a MailChimp audience. On my site, I need to show the total number of people that have made submissions. In my case “XX people have made pledges”. No problem here, I have that working fine.
My issue is that I can’t store any of the personal information in GF. So as soon as the submission is created and pushed to Mailchimp, the entry needs to be removed from GF. Again, I see ways to do this. However, I still need to be able to track the total number of pledges despite the entries being deleted. Since my entries are being deleted automatically, my total count no longer works.
I’d recommend storing the pledge count to the *_wp_options table and incrementing that value when each submission comes in using code hooked to gform_after_submission. This would keep the count independent of the stored entries. You can then pull the count directly from that option.