<?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: saving custom complex fields, RGFormsModel::prepare_value...</title>
		<link>https://legacy.forums.gravityhelp.com/topic/saving-custom-complex-fields-rgformsmodelprepare_value</link>
		<description>Gravity Support Forums Topic: saving custom complex fields, RGFormsModel::prepare_value...</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 17:36:33 +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/saving-custom-complex-fields-rgformsmodelprepare_value" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "saving custom complex fields, RGFormsModel::prepare_value..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-custom-complex-fields-rgformsmodelprepare_value#post-76483</link>
			<pubDate>Thu, 20 Sep 2012 07:47:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76483@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update Ross.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webaware on "saving custom complex fields, RGFormsModel::prepare_value..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-custom-complex-fields-rgformsmodelprepare_value#post-76425</link>
			<pubDate>Wed, 19 Sep 2012 22:09:12 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">76425@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Beauty, all working now, thanks.&#60;/p&#62;
&#60;p&#62;cheers,&#60;br /&#62;
Ross
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webaware on "saving custom complex fields, RGFormsModel::prepare_value..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-custom-complex-fields-rgformsmodelprepare_value#post-76392</link>
			<pubDate>Wed, 19 Sep 2012 18:32:41 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">76392@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;G'day Dana,&#60;/p&#62;
&#60;p&#62;So for my complex field, I should:&#60;/p&#62;
&#60;p&#62;* rename all my fields to use non-GF names&#60;br /&#62;
* add a hidden field to my complex field that uses GF naming convention and pre-populate it on submission&#60;/p&#62;
&#60;p&#62;OK, I can do that. Will give it a shot. Of course, it would be easier if RGFormsModel::prepare_value() had a filter hook allowing plugins to add custom field types :)&#60;/p&#62;
&#60;p&#62;cheers,&#60;br /&#62;
Ross
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "saving custom complex fields, RGFormsModel::prepare_value..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-custom-complex-fields-rgformsmodelprepare_value#post-76323</link>
			<pubDate>Wed, 19 Sep 2012 12:49:14 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">76323@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, webaware,&#60;/p&#62;
&#60;p&#62;The easiest way to do what you want is to have a hidden field on your form and populate that with the values you want to save. You need to:&#60;/p&#62;
&#60;p&#62;1. Do NOT name the input tags in your custom field using the Gravity Forms naming convention of input_FIELD_ID since you do not want this data saved.&#60;br /&#62;
2. Name your hidden field using the Gravity Forms naming convention of input_FIELD_ID. Naming your field this way will ensure that Gravity Forms will use that field's value when saving your custom field.&#60;br /&#62;
3. Populate the hidden field using the &#34;gform_pre_submission&#34; hook (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission)&#60;/a&#62;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webaware on "saving custom complex fields, RGFormsModel::prepare_value..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/saving-custom-complex-fields-rgformsmodelprepare_value#post-76285</link>
			<pubDate>Wed, 19 Sep 2012 07:22:03 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">76285@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;G'day, I'm adding a custom complex field to my plugin (for recurring donations) and can't seem to work out how to save a concatenated value for the field. The custom field has multiple parts and I want to concatenate them and save as a formatted string.&#60;/p&#62;
&#60;p&#62;RGFormsModel::save_input() only saves fields with a value, sensibly, but how do I give it a value to save? I figured that RGFormsModel::prepare_value() would be the place to hook into for that, but there's no filter hook called from it.&#60;/p&#62;
&#60;p&#62;Can you please advise what I need to do here?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
