<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: GFFormsModel::get_leads Not returning all Entries</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gfformsmodelget_leads-not-returning-all-entries</link>
		<description>Gravity Support Forums Topic: GFFormsModel::get_leads Not returning all Entries</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 21:19:10 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/gfformsmodelget_leads-not-returning-all-entries" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "GFFormsModel::get_leads Not returning all Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gfformsmodelget_leads-not-returning-all-entries#post-334462</link>
			<pubDate>Thu, 20 Jun 2013 10:45:46 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">334462@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Handling via priority support.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VFHwebdev on "GFFormsModel::get_leads Not returning all Entries"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gfformsmodelget_leads-not-returning-all-entries#post-330261</link>
			<pubDate>Tue, 18 Jun 2013 11:22:55 +0000</pubDate>
			<dc:creator>VFHwebdev</dc:creator>
			<guid isPermaLink="false">330261@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm running pre-render filter to do some calculations for number of items available for a product with a limited supply. I'm finding that GFFormsModel::get_leads isn't returning all my form entries. &#60;/p&#62;
&#60;p&#62;For example:&#60;/p&#62;
&#60;p&#62;add_action('gform_pre_render_2', 'gform_display_limit');&#60;br /&#62;
function gform_display_limit($form) {&#60;br /&#62;
   	$entryCount = 0;&#60;br /&#62;
	$entries = GFFormsModel::get_leads($form['id']);&#60;br /&#62;
	foreach($entries as &#38;amp;$entry){&#60;br /&#62;
		$entryCount++;&#60;br /&#62;
	}        &#60;/p&#62;
&#60;p&#62;	$form['description'] .= $entryCount;&#60;/p&#62;
&#60;p&#62;    return $form;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Shows a value of 30 for $entryCount even though I have 52 form entries.&#60;/p&#62;
&#60;p&#62;This is a simplified example. What I actually need to do is loop through all the entries, check the value of a specific field and do some calculations based on that field.&#60;/p&#62;
&#60;p&#62;But if get_leads isn't returning all my form entries, this doesn't really work. Is this expected behavior of get_leads or am I doing something wrong?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
