<?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: Prepopulate the first name &#38; last name field?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-the-first-name-last-name-field</link>
		<description>Gravity Support Forums Topic: Prepopulate the first name &amp; last name field?</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Apr 2026 11:54:06 +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/prepopulate-the-first-name-last-name-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Jive Software on "Prepopulate the first name &#38; last name field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-the-first-name-last-name-field#post-92037</link>
			<pubDate>Fri, 16 Nov 2012 16:03:53 +0000</pubDate>
			<dc:creator>Jive Software</dc:creator>
			<guid isPermaLink="false">92037@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David&#60;br /&#62;
I am coding a stantard software B2B marketing form &#38;amp; bypass logic... &#60;/p&#62;
&#60;p&#62;First time user:&#60;/p&#62;
&#60;p&#62;Prerender Hook:&#60;br /&#62;
Lands on the form and submits all the GF fields defined in the form. &#60;/p&#62;
&#60;p&#62;Validation Hook:&#60;br /&#62;
If email is valid then I make API requests to other system API's to ensure the API response is valid...&#60;/p&#62;
&#60;p&#62;After Submission Hook:&#60;br /&#62;
The data is then validated and then sent to the several different API's to record the user in other systems like Marketing Automation,  Then generate a return user unique GUID in a cookie&#60;/p&#62;
&#60;p&#62;----------------------&#60;br /&#62;
Return user:&#60;/p&#62;
&#60;p&#62;Prerender Hook&#60;br /&#62;
During the prerender hook I look for the return user cookie GUID.  If this is the case then depending on the form type I bypass the form.&#60;/p&#62;
&#60;p&#62;- If return user is requesting printed marketing materials I bypass the form entrily and submit the user data stored in wp_rg_lead_detail based on the unique GUID&#60;/p&#62;
&#60;p&#62;- If return user is signing up for event orient marketing posts I hack the gf form field array to only present the email and hidden google tracking inputs.&#60;/p&#62;
&#60;p&#62;Validation Hook&#60;br /&#62;
When the return user resubmits the email for event based forms I then hack the validation to only validate for email. If email is valid, I then make API requests to other system API's to ensure the API response is valid...&#60;/p&#62;
&#60;p&#62;After Submission&#60;br /&#62;
Then during gform_after_submission If return user I grab there information from the wp_rg_lead_detail based on the unique GUID and send the data to the several different API's to record the user in other systems like Marketing Automation.&#60;/p&#62;
&#60;p&#62;My Current Challange:&#60;br /&#62;
For return users In between the validation hook and after submission hook the new entry gets added in the  wp_rg_lead_detail so I need to figure out a way to populate the gf form fields array with the correct data during the validation that way when gf inserts the new entry into wp_rg_lead_detail it has all data that is stored for that return user. &#60;/p&#62;
&#60;p&#62;Make sense?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Prepopulate the first name &#38; last name field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-the-first-name-last-name-field#post-92023</link>
			<pubDate>Fri, 16 Nov 2012 15:21:37 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">92023@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you give us more insight into why you are trying to populate a value during validation?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jive Software on "Prepopulate the first name &#38; last name field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/prepopulate-the-first-name-last-name-field#post-91993</link>
			<pubDate>Fri, 16 Nov 2012 13:57:01 +0000</pubDate>
			<dc:creator>Jive Software</dc:creator>
			<guid isPermaLink="false">91993@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What is the best way to prepopulate the first name and last name field during the gform_validation hook?   It seems like the $field['defaultValue'] does not work for multi field elements?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
