<?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: Populate the_content in the WYSIWYG field to GF Add-on</title>
		<link>https://legacy.forums.gravityhelp.com/topic/populate-the_content-in-the-wysiwyg-field-to-gf-add-on</link>
		<description>Gravity Support Forums Topic: Populate the_content in the WYSIWYG field to GF Add-on</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:27:16 +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/populate-the_content-in-the-wysiwyg-field-to-gf-add-on" rel="self" type="application/rss+xml" />

		<item>
			<title>popsantiago on "Populate the_content in the WYSIWYG field to GF Add-on"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/populate-the_content-in-the-wysiwyg-field-to-gf-add-on#post-201359</link>
			<pubDate>Mon, 08 Apr 2013 14:07:54 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">201359@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I would like to populate the_content of spécific post in my form.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;populate_fields&#38;quot;);
add_filter(&#38;quot;gform_admin_pre_render&#38;quot;, &#38;quot;populate_fields&#38;quot;);

function populate_fields($form){

    //only populating drop down for form id 12
    if($form[&#38;quot;id&#38;quot;] != 12)
       return $form;
	$id_factory = $_GET[&#38;#39;id_factory&#38;#39;];
	$form[&#38;quot;fields&#38;quot;][0][&#38;quot;defaultValue&#38;quot;] = get_post_field( &#38;#39;post_title&#38;#39;, $id_factory, &#38;#39;display&#38;#39; );
	$form[&#38;quot;fields&#38;quot;][1][&#38;quot;defaultValue&#38;quot;] = get_post_field( &#38;#39;post_content&#38;#39;, $id_factory, &#38;#39;display&#38;#39; );

    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;For the title it's ok, but the_content that's not load...&#60;/p&#62;
&#60;p&#62;Any idea ?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
