<?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: jQuery To Detect All Forms (And Their IDs) On A Given Page</title>
		<link>https://legacy.forums.gravityhelp.com/topic/jquery-to-detect-all-forms-and-their-ids-on-a-given-page</link>
		<description>Gravity Support Forums Topic: jQuery To Detect All Forms (And Their IDs) On A Given Page</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:58:16 +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/jquery-to-detect-all-forms-and-their-ids-on-a-given-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "jQuery To Detect All Forms (And Their IDs) On A Given Page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-to-detect-all-forms-and-their-ids-on-a-given-page#post-75599</link>
			<pubDate>Sat, 15 Sep 2012 19:08:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">75599@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is no code to do that that I am aware of.  Whenever a Gravity Form is added to a page, the form ID is added a couple times:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;#39;gform_wrapper_134&#38;#39; &#38;gt;
&#38;lt;form id=&#38;#39;gform_134&#38;#39;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You should be able to go through the page and grab the form IDs know that string will exist  every time a form is embedded.   If you need additional help with this, please let us know.  And we would love to see the code you come up with when you're done.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>100marketers on "jQuery To Detect All Forms (And Their IDs) On A Given Page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/jquery-to-detect-all-forms-and-their-ids-on-a-given-page#post-74719</link>
			<pubDate>Mon, 10 Sep 2012 20:16:34 +0000</pubDate>
			<dc:creator>100marketers</dc:creator>
			<guid isPermaLink="false">74719@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;jQuery To Detect All Forms (And Their IDs) On A Given Page&#60;/p&#62;
&#60;p&#62;Do you know if this code exists anywhere and if so, can you please point me in the right direction. I can write this custom, if needed, but if it already exists--that would certainly save me time.&#60;/p&#62;
&#60;p&#62;The idea is to detect all forms and their relative IDs that exist on the page and then loop through those IDs passing them to your Google OnClick Event Tracking code: ( &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/onclick-tracking#post-7734)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/onclick-tracking#post-7734)&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;The purpose of this is to:&#60;/p&#62;
&#60;p&#62;1.) To automatically create the necessary Event Tracking code, instead of manually having to add hard coded Form IDs every time a new form is created--which is a bit labor intensive in the long run.&#60;/p&#62;
&#60;p&#62;2.) To reduce load time--as opposed to trying to loop through all form IDs in the database--by only writing the Google code for forms detected on that page.&#60;/p&#62;
&#60;p&#62;Thoughts?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
