<?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: Form in a tab</title>
		<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab</link>
		<description>Gravity Support Forums Topic: Form in a tab</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 12:09:33 +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/form-in-a-tab" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-171332</link>
			<pubDate>Thu, 14 Mar 2013 13:24:10 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">171332@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The code will go in your current theme's functions.php file.&#60;/p&#62;
&#60;p&#62;Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php
add_filter(&#38;quot;gform_form_tag&#38;quot;, &#38;quot;form_tag&#38;quot;, 10, 2);
function form_tag($form_tag, $form){
    // this will be applied to form 1 only
    if ($form[&#38;#39;id&#38;#39;] == 1) {
    // you may have to add the page slug before the #tab-0 here
        $form_tag = preg_replace(&#38;quot;&#124;action=&#38;#39;(.*?)&#38;#39;&#124;&#38;quot;, &#38;quot;action=&#38;#39;#tab-0&#38;#39;&#38;quot;, $form_tag);
    }
        return $form_tag;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>finchkelsey on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-171308</link>
			<pubDate>Thu, 14 Mar 2013 12:49:19 +0000</pubDate>
			<dc:creator>finchkelsey</dc:creator>
			<guid isPermaLink="false">171308@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Could you give me a code example please!&#60;/p&#62;
&#60;p&#62;The anchor name for the tab is #tab-0&#60;/p&#62;
&#60;p&#62;&#38;lt;form method='post' enctype='??????'  id='gform_1'  action='#tab-0'&#38;gt; maybe??&#60;/p&#62;
&#60;p&#62;Where does this code go? functions.php? page.php?&#60;/p&#62;
&#60;p&#62;Thanks Kelsey
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-171166</link>
			<pubDate>Thu, 14 Mar 2013 09:23:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">171166@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You would use the code on that page of documentation to change the form tag to submit to the URL of the tab you're on currently, which in the other user's case was a named anchor on the same page.  So, you would need to find the URL of the tab, and change the code in that example to include the named anchor (the part including the #, like #tabbed_content1 maybe).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>finchkelsey on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-170056</link>
			<pubDate>Wed, 13 Mar 2013 13:44:27 +0000</pubDate>
			<dc:creator>finchkelsey</dc:creator>
			<guid isPermaLink="false">170056@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am having the same issue. I have form in multiple tabs. When the forms is submitted it default back to the first tab so the user does not see the 'form submit success' message.&#60;/p&#62;
&#60;p&#62;Please be more specific as to how to use the GForm_form_tag code to solve this issue.&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-145161</link>
			<pubDate>Sat, 09 Feb 2013 12:12:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145161@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think the issue is in the form tag:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;form method=&#38;#39;post&#38;#39; enctype=&#38;#39;multipart/form-data&#38;#39;  id=&#38;#39;gform_1&#38;#39;  action=&#38;#39;/tours/arequipa/&#38;#39;&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Each tab does not actually have its own page URL: the unique part of the URL is an anchor tag in the same page.  Gravity Forms submits to the page though.  You can use the gform_form_tag &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_form_tag&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_form_tag&#60;/a&#62; to modify the form action to the URL of the tab.  That will work so long as that URL does not change.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aejandro on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-145115</link>
			<pubDate>Sat, 09 Feb 2013 10:22:03 +0000</pubDate>
			<dc:creator>Aejandro</dc:creator>
			<guid isPermaLink="false">145115@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sure, here it is: &#60;a href=&#34;http://goo.gl/hQP40&#34; rel=&#34;nofollow&#34;&#62;http://goo.gl/hQP40&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-145006</link>
			<pubDate>Sat, 09 Feb 2013 01:55:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145006@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please provide a link to the site where we can see your form in action.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Aejandro on "Form in a tab"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/form-in-a-tab#post-144658</link>
			<pubDate>Fri, 08 Feb 2013 09:01:59 +0000</pubDate>
			<dc:creator>Aejandro</dc:creator>
			<guid isPermaLink="false">144658@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, my layout has tabs so I am using a tab to show the gravity form.&#60;/p&#62;
&#60;p&#62;The problem is when user submits the form, the page reloads not on the specific tab in order to see either the confirmation message or the incomplete alert message.&#60;/p&#62;
&#60;p&#62;Each tab has its own specific url so what would be the way to GF reloads on the specific tab url?&#60;/p&#62;
&#60;p&#62;Thank you
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
