<?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: Passing data between forms</title>
		<link>https://legacy.forums.gravityhelp.com/topic/passing-data-between-forms</link>
		<description>Gravity Support Forums Topic: Passing data between forms</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:26:23 +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/passing-data-between-forms" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Passing data between forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-data-between-forms#post-57735</link>
			<pubDate>Fri, 04 May 2012 10:22:35 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">57735@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Wow, that's some serious customization. Great stuff. I'd love to see it all running when its done.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>snails007 on "Passing data between forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-data-between-forms#post-57733</link>
			<pubDate>Fri, 04 May 2012 10:21:18 +0000</pubDate>
			<dc:creator>snails007</dc:creator>
			<guid isPermaLink="false">57733@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This did the trick for anyone else looking for this...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_after_submission&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);
function set_post_content($form){

	//only for form id
    if($form[&#38;quot;id&#38;quot;] == 3)
       return $form;

    //getting post
    $post = get_post($proj_id);

    //changing post content
    $post-&#38;gt;post_status  = &#38;quot;pending&#38;quot;;

    //updating post
    wp_update_post($post);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>snails007 on "Passing data between forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-data-between-forms#post-57724</link>
			<pubDate>Fri, 04 May 2012 09:46:49 +0000</pubDate>
			<dc:creator>snails007</dc:creator>
			<guid isPermaLink="false">57724@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not sure if this is possible...&#60;/p&#62;
&#60;p&#62;I currently have a 'submit project' form where a user posts a project as a custom post type ('project').&#60;br /&#62;
In my single-project.php page it then displays the single project that has been posted. I have then embedded a 'submit bid' form (custom post type of 'bid') in this page beneath the project.&#60;br /&#62;
Once a bid is submitted I then display all of the bids beneath the project.&#60;/p&#62;
&#60;p&#62;I then want the author of the project to be able to select one of the bids as 'chosen'.&#60;br /&#62;
For this I have then set up a third form ('choose bid') that is embedded within the loop that displays the bids. So the 'choose bid' form is displayed once on every bid and has a radio button to select the bid.&#60;br /&#62;
Once chosen and submitted, I then populate this 'choose bid' form with all of the data from both the original 'project' and the chosen 'bid' so that this information is all stored in the database as a new post type called 'project-won'.&#60;br /&#62;
So this new 'project-won' post is complete with the project info (author, content, title) and the winning bid info (bid amount, bid proposal, bid author).&#60;/p&#62;
&#60;p&#62;So after all of that, my question is:&#60;br /&#62;
Is there any way to somehow link back to the original 'project' form and possibly change the status to a draft or manipulate the form in any other way.&#60;/p&#62;
&#60;p&#62;I think it's a long shot but thought I'd ask :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
