<?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: Need help creating an edit form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form</link>
		<description>Gravity Support Forums Topic: Need help creating an edit form</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:45:53 +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/need-help-creating-an-edit-form" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-25730</link>
			<pubDate>Tue, 17 May 2011 15:20:30 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">25730@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Radioswan,&#60;/p&#62;
&#60;p&#62;This turned out to be a bit more involved than I thought... but here is the code posted above updated to support the address field:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1917904&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1917904&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>radioswan on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-25570</link>
			<pubDate>Mon, 16 May 2011 07:16:34 +0000</pubDate>
			<dc:creator>radioswan</dc:creator>
			<guid isPermaLink="false">25570@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Has anyone been able to get this to pre-render the 'advanced' address fields?&#60;/p&#62;
&#60;p&#62;I tried the following from another post but it's not working.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;case &#38;#39;address&#38;#39;:
             $i = 1;
            foreach($field[&#38;#39;inputs&#38;#39;] as $addr){
				if(!isset($entry[$addr[&#38;#39;id&#38;#39;]])) {
                    $i++;
                    continue;
                }
				$x = (string) $addr[&#38;#39;id&#38;#39;];
				$val = $entry[$x];
                $addr[&#38;#39;defaultValue&#38;#39;] = $val;
            }
            break;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>brianfidler on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-22649</link>
			<pubDate>Wed, 06 Apr 2011 15:02:16 +0000</pubDate>
			<dc:creator>brianfidler</dc:creator>
			<guid isPermaLink="false">22649@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can upgrade. Thanks for the snippet as well.&#60;/p&#62;
&#60;p&#62;Otherwise it works great, I explicitly declared the value of $lead_id and the form self-populated perfectly so I'll drop this snippet in and then upgrade which should do the trick.&#60;/p&#62;
&#60;p&#62;thanks&#60;br /&#62;
brian
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-22648</link>
			<pubDate>Wed, 06 Apr 2011 14:58:05 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">22648@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yep, rgget is available in 1.5. Is upgrading not an option for you? If not, just add this below the other snippet:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1764594&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1764594&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brianfidler on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-22642</link>
			<pubDate>Wed, 06 Apr 2011 13:33:28 +0000</pubDate>
			<dc:creator>brianfidler</dc:creator>
			<guid isPermaLink="false">22642@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, I had the gform_pre_render_3 set up incorrectly. So now it is definitely fetching the function however it doesn't recognize rgget() so I get this error:&#60;/p&#62;
&#60;p&#62;Fatal error: Call to undefined function rgget() in /home/ventura1/public_html/wp-content/themes/672_wp/functions.php on line 1062&#60;/p&#62;
&#60;p&#62;Is rgget() from a newer version of GF? I'm using 1.4.5.&#60;/p&#62;
&#60;p&#62;thanks,&#60;br /&#62;
brian
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brianfidler on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-22639</link>
			<pubDate>Wed, 06 Apr 2011 13:15:43 +0000</pubDate>
			<dc:creator>brianfidler</dc:creator>
			<guid isPermaLink="false">22639@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks David, &#60;/p&#62;
&#60;p&#62;It looks like it's not being fetched correctly. If I echo out the $lead_id it doesn't display anything. &#60;/p&#62;
&#60;p&#62;so, maybe my next question, :)  is how do I fetch it correctly?&#60;/p&#62;
&#60;p&#62;thanks&#60;br /&#62;
brian
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-22635</link>
			<pubDate>Wed, 06 Apr 2011 12:37:07 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">22635@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;A few things to check:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;make sure the lid you are using &#34;12&#34; is a valid lid&#60;/li&#62;
&#60;li&#62;make sure the lid you are using was created by the form you are attempting to populate&#60;/li&#62;
&#60;li&#62;in the code snippet you are using, echo out the $lead_id after you attempt to retrieve it from the query to make sure it is being fetched correctly:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
$lead_id = rgget(&#38;#39;lid&#38;#39;) ? rgget(&#38;#39;lid&#38;#39;) : 0;
echo $lead_id;&#60;/code&#62;&#60;/pre&#62;
&#60;/li&#62;
&#60;/ol&#62;</description>
		</item>
		<item>
			<title>brianfidler on "Need help creating an edit form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-help-creating-an-edit-form#post-22607</link>
			<pubDate>Wed, 06 Apr 2011 04:19:35 +0000</pubDate>
			<dc:creator>brianfidler</dc:creator>
			<guid isPermaLink="false">22607@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm starting using the code located in a post from 4 days ago (&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/displaying-entry-data-in-form#post-22281)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/displaying-entry-data-in-form#post-22281)&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;I have a form that I want to use as an edit form so that if the Lead ID already exists, the form will pre-populate with the data that is already in the database. &#60;/p&#62;
&#60;p&#62;I have taken David Smith's code from &#60;a href=&#34;http://pastie.org/1744975&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1744975&#60;/a&#62;, added it to my functions.php file, set up a hidden field to capture the original Lead ID dynamically from the URL string, however it still isn't loading anything. I've tried a couple of different URL string syntax including &#60;a href=&#34;http://www.mysite.com/edit-directory/?lid=12&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/edit-directory/?lid=12&#60;/a&#62; and &#60;a href=&#34;http://www.mysite.com/edit-directory/?/lid/12&#34; rel=&#34;nofollow&#34;&#62;http://www.mysite.com/edit-directory/?/lid/12&#60;/a&#62;, however neither preloads the data in my form. &#60;/p&#62;
&#60;p&#62;Any idea what I'm doing incorrectly?&#60;/p&#62;
&#60;p&#62;thanks&#60;br /&#62;
brian
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
