<?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: Pre Render Address</title>
		<link>https://legacy.forums.gravityhelp.com/topic/pre-render-address</link>
		<description>Gravity Support Forums Topic: Pre Render Address</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:14:25 +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/pre-render-address" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Pre Render Address"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-render-address#post-109980</link>
			<pubDate>Fri, 28 Dec 2012 16:37:28 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">109980@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad it got sorted, I can definitely empathize with wanting everything in one function. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Pre Render Address"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-render-address#post-109979</link>
			<pubDate>Fri, 28 Dec 2012 16:36:18 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">109979@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, I was trying to force that one method. The parameter worked much better. Much appreciated!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Pre Render Address"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-render-address#post-109958</link>
			<pubDate>Fri, 28 Dec 2012 15:53:27 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">109958@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I asked one of our developers and he said for the address field that you should use our gform_field_value hook with the parameter name you gave for the input as it will do the address field without issue. That will allow you to get back on track.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Pre Render Address"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-render-address#post-109949</link>
			<pubDate>Fri, 28 Dec 2012 15:35:13 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">109949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the reply&#60;/p&#62;
&#60;p&#62;Uses gform_pre_render, its on a template, it is part of a large profile form. There are many other fields on the form, which work, so it is firing right. Just can't seem to pre-render this one field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Pre Render Address"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-render-address#post-109947</link>
			<pubDate>Fri, 28 Dec 2012 15:31:32 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">109947@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Which of our hooks are you trying to use to do this? You have this in your theme's functions.php file?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Pre Render Address"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/pre-render-address#post-109843</link>
			<pubDate>Fri, 28 Dec 2012 12:02:13 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">109843@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, I am guessing this has been addressed here somewhere and I am just can't find it. I am having trouble pre rendering the address field.&#60;/p&#62;
&#60;p&#62; this is where I am at right now inside the function :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$street =  get_post_meta($post-&#38;gt;ID, &#38;#39;street&#38;#39;, true);
$city =  get_post_meta($post-&#38;gt;ID, &#38;#39;city&#38;#39;, true);
$state =  get_post_meta($post-&#38;gt;ID, &#38;#39;state&#38;#39;, true);
$zip =  get_post_meta($post-&#38;gt;ID, &#38;#39;zip&#38;#39;, true);

    $inputs = array(
                    array(&#38;quot;id&#38;quot; =&#38;gt; 15.1, &#38;quot;defaultValue&#38;quot; =&#38;gt; $street),
                    array(&#38;quot;id&#38;quot; =&#38;gt; 15.3, &#38;quot;defaultValue&#38;quot; =&#38;gt; $city),
                    array(&#38;quot;id&#38;quot; =&#38;gt; 15.4, &#38;quot;defaultValue&#38;quot; =&#38;gt; $state),
                    array(&#38;quot;id&#38;quot; =&#38;gt; 15.5, &#38;quot;defaultValue&#38;quot; =&#38;gt; $zip),
                );

 foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field){

	if($field[&#38;quot;id&#38;quot;] == 15){
		$field[&#38;quot;defaultValue&#38;quot;] = $inputs;
	}
 }
 return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
