<?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: Formatting to prepopulate price?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/formatting-to-prepopulate-price</link>
		<description>Gravity Support Forums Topic: Formatting to prepopulate price?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:23:34 +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/formatting-to-prepopulate-price" rel="self" type="application/rss+xml" />

		<item>
			<title>ktrusak on "Formatting to prepopulate price?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/formatting-to-prepopulate-price#post-77324</link>
			<pubDate>Tue, 25 Sep 2012 13:28:44 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">77324@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris, were you able to tell what's wrong?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Formatting to prepopulate price?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/formatting-to-prepopulate-price#post-77032</link>
			<pubDate>Sun, 23 Sep 2012 21:52:49 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">77032@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sure, the example form can be seen on hookahi.com/example . I tried with id 19.1 too for  the checkbox, neither worked
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Formatting to prepopulate price?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/formatting-to-prepopulate-price#post-77023</link>
			<pubDate>Sun, 23 Sep 2012 21:20:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">77023@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The bug mentioned in those posts was fixed a long time ago.  Can you post a link to your site please so we can see what's going on? Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Formatting to prepopulate price?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/formatting-to-prepopulate-price#post-76725</link>
			<pubDate>Fri, 21 Sep 2012 14:13:59 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">76725@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Apparently this is some kind of minor bug, judging by &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamic-populate-fields&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/dynamic-populate-fields&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/dynamic-population-of-pricing-option-fields&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/dynamic-population-of-pricing-option-fields&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;How can I get this solution?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ktrusak on "Formatting to prepopulate price?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/formatting-to-prepopulate-price#post-76715</link>
			<pubDate>Fri, 21 Sep 2012 13:20:45 +0000</pubDate>
			<dc:creator>ktrusak</dc:creator>
			<guid isPermaLink="false">76715@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't seem to prepopulate a product option box &#60;/p&#62;
&#60;p&#62;The code works for pulling the value into a simple text field, but won't work on a product option field?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render_21&#38;#39;, &#38;#39;GF_update_trip_info1&#38;#39;);
function GF_update_trip_info1 ($form) {

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

	if($field[&#38;quot;id&#38;quot;] == 20){
		$field[&#38;quot;defaultValue&#38;quot;] = get_post_meta(2, &#38;#39;your_trips_0_full_cost&#38;#39;, true);
	}
	if($field[&#38;quot;id&#38;quot;] == 19){
		$field[&#38;quot;defaultValue&#38;quot;] = get_post_meta(2, &#38;#39;your_trips_0_full_cost&#38;#39;, true);
	}

} return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Field 20 is a text box and 19 is product option, it is pulling the same value but won't appear in the price box. I am using the WooCommerce grav add-on, could this be blocking price fields from being populated?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
