<?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: pass first page if user logged in</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pass-first-page-if-user-loggen-in</link>
		<description>Gravity Support Forums Topic: pass first page if user logged in</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 16:38:39 +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/pass-first-page-if-user-loggen-in" rel="self" type="application/rss+xml" />

		<item>
			<title>Ardia on "pass first page if user logged in"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-first-page-if-user-loggen-in#post-20443</link>
			<pubDate>Sat, 12 Mar 2011 01:28:20 +0000</pubDate>
			<dc:creator>Ardia</dc:creator>
			<guid isPermaLink="false">20443@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;wonderful :)&#60;/p&#62;
&#60;p&#62;Thanks Alex
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "pass first page if user logged in"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-first-page-if-user-loggen-in#post-20403</link>
			<pubDate>Fri, 11 Mar 2011 10:57:19 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">20403@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here we go. Have fun.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;skip_first_page&#38;quot;);
function skip_first_page($form){
    //NOTE: Replace the form IDs below (i.e. &#38;quot;134&#38;quot;, &#38;quot;135&#38;quot;, &#38;quot;136&#38;quot;) with your actual form IDs
    if(in_array($form[&#38;quot;id&#38;quot;], array(&#38;quot;134&#38;quot;, &#38;quot;135&#38;quot;, &#38;quot;136&#38;quot;))){
        if(is_user_logged_in()){

            if(!isset(GFFormDisplay::$submission[$form[&#38;quot;id&#38;quot;]])){
                GFFormDisplay::$submission[$form[&#38;quot;id&#38;quot;]] = array(&#38;quot;page_number&#38;quot; =&#38;gt; 2);
            }

            if(GFFormDisplay::$submission[$form[&#38;quot;id&#38;quot;]][&#38;quot;page_number&#38;quot;] == 2){
                wp_enqueue_script(&#38;quot;jquery&#38;quot;);
                ?&#38;gt;
                &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
                jQuery(document).ready(function(){
                    jQuery(&#38;quot;.gform_previous_button&#38;quot;).hide();
                });
                &#38;lt;/script&#38;gt;
                &#38;lt;?php
            }
        }
    }
    return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Ardia on "pass first page if user logged in"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-first-page-if-user-loggen-in#post-20394</link>
			<pubDate>Thu, 10 Mar 2011 23:24:58 +0000</pubDate>
			<dc:creator>Ardia</dc:creator>
			<guid isPermaLink="false">20394@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This is it.&#60;br /&#62;
But one question. If i want to use it for multiple forms. Is there way to do this. Something like coma seperate form id numbers or something else ...(sorry i am not a coder )&#60;/p&#62;
&#60;p&#62;And one more thing with this code it passes first page it goes to second page but when i click to next for going to third page i does not go to third page. it stays at the second page Also when i click next it shows previous buton. is there way to fix this?&#60;/p&#62;
&#60;p&#62;Thank you very much Alex.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "pass first page if user logged in"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-first-page-if-user-loggen-in#post-20321</link>
			<pubDate>Thu, 10 Mar 2011 11:47:01 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">20321@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Try the following. It is not very pretty, but I think it will do the job for you. Make sure you replace 134 with your actual form ID&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//NOTE: Replace 134 with your actual form ID
add_action(&#38;quot;gform_pre_render_134&#38;quot;, &#38;quot;skip_first_page&#38;quot;);
function skip_first_page($form){
    if(is_user_logged_in()){
        GFFormDisplay::$submission[$form[&#38;quot;id&#38;quot;]] = array(&#38;quot;page_number&#38;quot; =&#38;gt; 2);
        wp_enqueue_script(&#38;quot;jquery&#38;quot;);
        ?&#38;gt;
        &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
        jQuery(document).ready(function(){
            jQuery(&#38;quot;.gform_previous_button&#38;quot;).hide();
        });
        &#38;lt;/script&#38;gt;
        &#38;lt;?php
    }

    return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Ardia on "pass first page if user logged in"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pass-first-page-if-user-loggen-in#post-20281</link>
			<pubDate>Wed, 09 Mar 2011 17:18:12 +0000</pubDate>
			<dc:creator>Ardia</dc:creator>
			<guid isPermaLink="false">20281@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i have multi-page forms. i want users passed first page adn see second page automaticly if they are logged in. is it possible with some custom code or hook.&#60;br /&#62;
Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
