<?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: Set Post Status and User Registration based on value of a drop down field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/set-post-status-and-user-registration-based-on-value-of-a-drop-down-field</link>
		<description>Gravity Support Forums Topic: Set Post Status and User Registration based on value of a drop down field</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 18:50:30 +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/set-post-status-and-user-registration-based-on-value-of-a-drop-down-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Set Post Status and User Registration based on value of a drop down field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-status-and-user-registration-based-on-value-of-a-drop-down-field#post-86104</link>
			<pubDate>Thu, 01 Nov 2012 06:53:42 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">86104@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's a good way of doing it. Thanks for posting your solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bdunn@atn.org on "Set Post Status and User Registration based on value of a drop down field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-status-and-user-registration-based-on-value-of-a-drop-down-field#post-85890</link>
			<pubDate>Wed, 31 Oct 2012 18:26:02 +0000</pubDate>
			<dc:creator>bdunn@atn.org</dc:creator>
			<guid isPermaLink="false">85890@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, I found the gform_post_data hook information to set the $post_data[&#34;post_status&#34;].  It works like a charm.  &#60;/p&#62;
&#60;p&#62;Here is the script I used:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;change_post_status&#38;quot;, 10, 3);
function change_post_status($post_data, $form, $entry){
    //only change post status on form id 1
    if($form[&#38;quot;id&#38;quot;] != 1)
       return $post_data;
    //  Get payment selection choice
    $pay_type = $entry[&#38;quot;37&#38;quot;];
    if ($pay_type == &#38;quot;Check&#38;quot;)
       $post_data[&#38;quot;post_status&#38;quot;] = &#38;quot;draft&#38;quot;;
    if ($pay_type == &#38;quot;Card&#38;quot;)
        $post_data[&#38;quot;post_status&#38;quot;] = &#38;quot;publish&#38;quot;;
    return $post_data;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>bdunn@atn.org on "Set Post Status and User Registration based on value of a drop down field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/set-post-status-and-user-registration-based-on-value-of-a-drop-down-field#post-85809</link>
			<pubDate>Wed, 31 Oct 2012 14:20:15 +0000</pubDate>
			<dc:creator>bdunn@atn.org</dc:creator>
			<guid isPermaLink="false">85809@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Maybe I am trying to do too much with one form. I am using GF with PayPal Pro, MailChimp, and User Registration, &#60;/p&#62;
&#60;p&#62;I have a membership registration form that will create a new &#34;Member record&#34; (custom post type), register the user, sign them up on MailChimp list.  I have a drop down field to select to pay either by check (I attach an invoice to the notification email) or to pay via credit/debit card (using PayPal pro) if they select the option, process the dues payment via PayPal Payments Pro.&#60;/p&#62;
&#60;p&#62;Here is where I am stuck.  I want to create the post as a draft, create a user guest role account and sign them up for the if they select to pay by check.  If they select and successfully pay via PayPal payments Pro, I would like the post to be created as published, and the user to be set up as an editor role.  &#60;/p&#62;
&#60;p&#62;I am thinking perhaps I need a pre-submission hook based on payment type field.  Or would it require different feeds, or both?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
