<?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: How do I get the IDs of all (active) forms</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-ids-of-all-active-forms</link>
		<description>Gravity Support Forums Topic: How do I get the IDs of all (active) forms</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:27:26 +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/how-do-i-get-the-ids-of-all-active-forms" rel="self" type="application/rss+xml" />

		<item>
			<title>sascha on "How do I get the IDs of all (active) forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-ids-of-all-active-forms#post-48342</link>
			<pubDate>Sat, 04 Feb 2012 12:21:19 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">48342@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for explaining this!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "How do I get the IDs of all (active) forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-ids-of-all-active-forms#post-48172</link>
			<pubDate>Thu, 02 Feb 2012 12:53:59 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">48172@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You won't be able to just call get_forms. The &#34;RGFormsModel::get_forms()&#34; tells the code to run the function get_forms() that exists within the RGFormsModel class. That class exists in forms_model.php . There could be other plugins with a function named get_forms, using this syntax you tell the code to use Gravity Forms' function.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "How do I get the IDs of all (active) forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-ids-of-all-active-forms#post-48070</link>
			<pubDate>Wed, 01 Feb 2012 18:53:06 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">48070@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Dana,&#60;br /&#62;
thanks for this. That will help me along!&#60;br /&#62;
What does this syntax (RGFormsModel::get_forms();) with the colons and the RGFormsModel actually mean/do? Why can I not just call get_forms(); ?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "How do I get the IDs of all (active) forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-ids-of-all-active-forms#post-48040</link>
			<pubDate>Wed, 01 Feb 2012 17:32:41 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">48040@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, Sascha,&#60;/p&#62;
&#60;p&#62;You can take a look at the Gravity Forms' function &#34;get_forms&#34; located in forms_model.php. This function gets all the forms in the database and you can pass a parameter to it (0 or 1) indicating whether you want to get the active (1) or inactive (0) forms. If you leave off the parameter, all forms will be returned. You could use it like the code below:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//get all forms
$myforms = RGFormsModel::get_forms();
foreach ($myforms as $myform) {
    //loop through the forms and write out form title and status, 0 = inactive, 1 = active
    echo &#38;quot;Title: &#38;quot; . $myform-&#38;gt;title . &#38;quot; Active: &#38;quot; . $myform -&#38;gt;is_active . &#38;quot;&#38;lt;br&#38;gt;&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Let me know if you have any questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "How do I get the IDs of all (active) forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-i-get-the-ids-of-all-active-forms#post-46557</link>
			<pubDate>Tue, 17 Jan 2012 08:12:02 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46557@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;I would like to achieve 2 things:&#60;br /&#62;
1. get the IDs of all forms into an array&#60;br /&#62;
2. get the IDs of all active forms into an array&#60;/p&#62;
&#60;p&#62;Could you help me achieve this? Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
