<?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: Dynamically populating fields from another form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form</link>
		<description>Gravity Support Forums Topic: Dynamically populating fields from another form</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 03:28:22 +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/dynamically-populating-fields-from-another-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-130768</link>
			<pubDate>Thu, 24 Jan 2013 21:52:34 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">130768@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you need help, go ahead and start a new topic and we'll help you resolve one issue at a time.  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SaraJ on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-125369</link>
			<pubDate>Fri, 18 Jan 2013 12:43:29 +0000</pubDate>
			<dc:creator>SaraJ</dc:creator>
			<guid isPermaLink="false">125369@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris,&#60;/p&#62;
&#60;p&#62;I decided not to persue trying to get the databases to share information. I'm going to create a portion of the registration form today using GF and will hopefully have some sucess with dynamically populating a few fields from one form to the next (like name, medical info etc). I think I can figure that much out from the documentation. If I need help, I'll check back in.&#60;/p&#62;
&#60;p&#62;thanks,&#60;br /&#62;
Sara
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-124426</link>
			<pubDate>Thu, 17 Jan 2013 11:31:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">124426@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How much progress did you make with this?  Is there anything you need help with at this point?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SaraJ on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-118598</link>
			<pubDate>Thu, 10 Jan 2013 13:20:09 +0000</pubDate>
			<dc:creator>SaraJ</dc:creator>
			<guid isPermaLink="false">118598@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When the user fills in the pre-registration form, the database gets populated with their information and the pid is automatically created. Then if we send them the link: &#60;a href=&#34;http://upperlonsdalepreschool.com/registration-form/?pid=_____&#34; rel=&#34;nofollow&#34;&#62;http://upperlonsdalepreschool.com/registration-form/?pid=_____&#60;/a&#62; with their pid attached, they get the form, with their personal info filled in. There is a shortcode on the page &#60;a href=&#34;http://upperlonsdalepreschool.com/registration-form/&#34; rel=&#34;nofollow&#34;&#62;http://upperlonsdalepreschool.com/registration-form/&#60;/a&#62; that will only show the form if there is a pid in the url. As for the inner workings of what is exactly going on to populate the fields, I can't say for sure, but your assumption seems correct.&#60;/p&#62;
&#60;p&#62;I am leaning toward trying to create a gravity form that will populate our current database using gform_after_submission. If I can't figure it out in the next couple of days I'll just suffer with the ugly form :) Registration starts in a couple weeks!&#60;/p&#62;
&#60;p&#62;The solution I am going to go for is this...have a preregistration form that interested parents can fill out. We'll have a seperate long registration form for those who want to enrol, but I don't think I need to have the pre-reg form populate the other one, it's nice to have but not essential. Then when the user submits the form, I'll try to get it to populate our participants database, because it has other features such as lists and directories that are really handy. I only have a smattering of php knowledge so I'm going to try to sit down with my brother, who is a developer, to figure it out. I think if we try to solve it here it could be your full time job for the next week!&#60;/p&#62;
&#60;p&#62;For future reference, is there a hook or code snippet that pulls information from one form to populate another? For some reason this is still unclear to me. I'm thinking of not just populating the long form from the shorter one but other things like creating our emergency response forms that just contain the students medical information (right now those are created in a merge document in word from a csv file). I'll be leaving this in the hands of someone else in about 6 months(with even less knowledge than me!) and the less steps there are to registration, the better.&#60;/p&#62;
&#60;p&#62;Thanks so much again for your time.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-118375</link>
			<pubDate>Thu, 10 Jan 2013 07:19:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">118375@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When you say &#34;link like this&#34; with the pid in it, is that pid the key to pull the information from your other database and fill in the form?&#60;/p&#62;
&#60;p&#62;Regarding debugging the external database, I would check to be sure the $body array contains all the values as you expect, before sending them to the $post_url.  Check the value of $request before you send it, then check the $response.  Also, with the URL and body created, try just accessing that from a command line or browser.  Be sure you have the values you need, and be sure you're sending it to the correct place, then see what comes back.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SaraJ on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-118062</link>
			<pubDate>Thu, 10 Jan 2013 00:05:45 +0000</pubDate>
			<dc:creator>SaraJ</dc:creator>
			<guid isPermaLink="false">118062@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks so much for your reply Chris.&#60;br /&#62;
Here is a link to our current &#60;a href=&#34;http://upperlonsdalepreschool.com/pre-registration/&#34; rel=&#34;nofollow&#34;&#62; pre-registration form&#60;/a&#62; ( I know, the radio button are hideous!).  When a user submits this form, their data is submitted to the database and their record is created. When they are ready to register, we send them a link like &#60;a href=&#34;http://upperlonsdalepreschool.com/registration-form/?pid=XNYLI&#34; rel=&#34;nofollow&#34;&#62;this&#60;/a&#62; so they can fill out the long registration form.&#60;/p&#62;
&#60;p&#62;We obviously don't want to have to create a link like the one in the example you gave me for each family manually. Is there a way for me to generate the long registration form with the pertinent fields from the pre-registration form populated and send it to the user to complete?&#60;/p&#62;
&#60;p&#62;I hope those examples make my question a bit more clear.&#60;/p&#62;
&#60;p&#62;As for feeding the data from a gravity form into our database, I tried it, using the code snippet from example two in the documentation for Gform_after_submission, but I couldn't get it to work. Here is my &#60;a href=&#34;http://upperlonsdalepreschool.com/testing/&#34; rel=&#34;nofollow&#34;&#62;sample gravity form&#60;/a&#62; and the code I put in the functions.php file:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php
add_action(&#38;#39;gform_after_submission_5&#38;#39;, &#38;#39;post_to_third_party&#38;#39;, 10, 2);

function post_to_third_party($entry, $form) {

    $post_url = &#38;#39;http://upperlonsdalepreschool.com/pre-registration/&#38;#39;;
  	$body = array(
        &#38;#39;parent_1_first_name&#38;#39; =&#38;gt; $entry[&#38;#39;1.3&#38;#39;],
        &#38;#39;parent_1_last_name&#38;#39; =&#38;gt; $entry[&#38;#39;1.6&#38;#39;],
        &#38;#39;email&#38;#39; =&#38;gt; $entry[&#38;#39;3&#38;#39;]

        );
    $request = new WP_Http();
    $response = $request-&#38;gt;post($post_url, array(&#38;#39;body&#38;#39; =&#38;gt; $body));
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But this failed to create a new entry.&#60;/p&#62;
&#60;p&#62;Thanks so much for your speedy reply - I really appreciate the support.&#60;br /&#62;
Sara
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-118002</link>
			<pubDate>Wed, 09 Jan 2013 23:12:23 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">118002@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can certainly collect data with one form and send it to another form, pre-populating whatever fields you want in your second form.  You could alternately send the data to another database with some PHP code and our gform_after_submission hook.  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If you have a specific scenario of the information you want to collect with one form, and how it would be used to populate the second form, please share it here and I will try to find you a relevant example.&#60;/p&#62;
&#60;p&#62;Just as an example, you could use a link like this to send to a user, and it will populate the relevant fields in the form.  &#60;a href=&#34;http://gravity.chrishajer.com/pre-populate-everything/?fullname=sara&#38;amp;highschool=JFK&#38;amp;fruit=Melon&#38;amp;shoe=7.5&#34; rel=&#34;nofollow&#34;&#62;http://gravity.chrishajer.com/pre-populate-everything/?fullname=sara&#38;amp;highschool=JFK&#38;amp;fruit=Melon&#38;amp;shoe=7.5&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Remove a few of those parameters and you will see that some fields are still pre-populated.  That is pre-populating the values using the shortcode.  There are several ways to pre-populate form fields. &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SaraJ on "Dynamically populating fields from another form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamically-populating-fields-from-another-form#post-117833</link>
			<pubDate>Wed, 09 Jan 2013 17:50:32 +0000</pubDate>
			<dc:creator>SaraJ</dc:creator>
			<guid isPermaLink="false">117833@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;We've been using this great plugin, &#60;a href=&#34;http://wordpress.org/extend/plugins/participants-database/&#34; rel=&#34;nofollow&#34;&#62;Participants Database&#60;/a&#62; to manage registration and enrolment at our preschool. The features it provides are wonderful in terms of functionality. It allows interested parents to fill out a preliminary form, which creates a record of their inquiry in the database. If they choose to register, we can email them a link to a longer registration form that has the fields they've already filled out populated and they can continue to edit their form. If at any time they wish to change the form or add information, we can resend the link.&#60;/p&#62;
&#60;p&#62;My problem is this, we'd like to add more information to the registration form and formatting the forms to be remotely attractive and useable is very challenging. I am so impressed with the Gravity Forms UI and the forms it produces. I'd also really like to be able to use some of the add-on features like paypal and mail chimp integration.&#60;/p&#62;
&#60;p&#62;My question is this - does the above scenario sound replicable in Gravity forms? I have been pouring over the documentation and I have read through the instructions for dynamically populating fields and using parameter_names. I'm a little lost on how to take information from one form to populate a second form that could be sent to the individual to complete (in the form of an emailed link). Is this even possible? It seems like it is...I just haven't found that scenario in the questions already asked.&#60;/p&#62;
&#60;p&#62;Secondly, if this is not possible, would it be possible to create a Gravity Form that would then feed the information into our &#34;participants database&#34; that we are already using? If so, could you point me in the direction of the right hook to use?&#60;/p&#62;
&#60;p&#62;Thanks so much for your time...and so sorry if these questions are answered somewhere!&#60;br /&#62;
Sara
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
