<?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: Is there a filter to replace existing fields with something else in form display</title>
		<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-filter-to-replace-existing-fields-with-something-else-in-form-display</link>
		<description>Gravity Support Forums Topic: Is there a filter to replace existing fields with something else in form display</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:26:40 +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/is-there-a-filter-to-replace-existing-fields-with-something-else-in-form-display" rel="self" type="application/rss+xml" />

		<item>
			<title>Darren on "Is there a filter to replace existing fields with something else in form display"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-filter-to-replace-existing-fields-with-something-else-in-form-display#post-14655</link>
			<pubDate>Fri, 17 Dec 2010 15:11:06 +0000</pubDate>
			<dc:creator>Darren</dc:creator>
			<guid isPermaLink="false">14655@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for taking the time to respond David (and do up the example code),&#60;br /&#62;
That's closer to what I was wanting to do and would definitely work if I was just replacing existing checkboxes without adding or removing any new ones dynamically.&#60;/p&#62;
&#60;p&#62;However, I now realize (and understand what Carl was getting at)  that I'm still going to have to work directly with the database because the result I have could result in a changing number of checkboxes and main fields generated.  I can still build the form with the basic static fields that won't change but I'm using the methods from the RGFormsModel class to interact with the database when generating my form to insert the new fields as part of the $form object for my created form. I'll also have to populate changes across the other tables where $field data is linked in relationship (i.e. lead* tables) so I can maintain the entries records when the form changes.&#60;/p&#62;
&#60;p&#62;Thanks for your help guys and for such a straight forward database structure and VERY clean code base!  You've made it easier to understand how things are working and for me to come up with a workable solution!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Is there a filter to replace existing fields with something else in form display"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-filter-to-replace-existing-fields-with-something-else-in-form-display#post-14619</link>
			<pubDate>Thu, 16 Dec 2010 20:37:10 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">14619@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Darren,&#60;/p&#62;
&#60;p&#62;What you need is the &#60;strong&#62;&#60;a href=&#34;http://s3.amazonaws.com/gravityforms/documentation/gform_pre_render.pdf&#34; rel=&#34;nofollow&#34;&#62;gform_pre_render&#60;/a&#62;&#60;/strong&#62; filter hook. Using this hook you can update the form object (including the fields) of the form which is about to be generated.&#60;/p&#62;
&#60;p&#62;In addition to the example in the linked documentation, I've include a custom example that might shed some additional light on how the array containing your new checkbox options will need to be formatted.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1384369&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1384369&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;After correctly formatting your array of new choices, you just assign that array back to the choices property of the correct field in the form object. Hope that helps!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Darren on "Is there a filter to replace existing fields with something else in form display"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-filter-to-replace-existing-fields-with-something-else-in-form-display#post-14608</link>
			<pubDate>Thu, 16 Dec 2010 18:34:26 +0000</pubDate>
			<dc:creator>Darren</dc:creator>
			<guid isPermaLink="false">14608@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not sure I follow since the filter is included with the get_checkbox_choices() method then as found in the common.php file? &#60;/p&#62;
&#60;p&#62;Or maybe I didn't make myself clear enough?  I want to use a form created in gravity forms for people to sign up for information on different items. The items will vary depending on data from an external application that I've hooked into using its api.  So what I want to be able to do is &#34;hook&#34; into the form created in Gravity forms to output the relevant check box inputs from the info data from the other site.  &#60;/p&#62;
&#60;p&#62;I couldn't find any &#34;action&#34; hooks in Gravity forms that would allow me to just inject the fields, however I was thinking that the filter I referenced might allow me to just &#34;replace&#34; the existing check boxes with my generated inputs.  The code seems to indicate it's doable but my attempts at hooking into the filter have failed (I don't seem to be triggering the right call because I can't figure out what &#34;{$field[&#34;formId&#34;]}&#34; should be.&#60;br /&#62;
In other words, I'd just use the admin back end in Gravity forms to set the location of the check boxes but the actual fields will be replaced by the ones I generate and output using the filter.  Does that make sense?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Is there a filter to replace existing fields with something else in form display"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-filter-to-replace-existing-fields-with-something-else-in-form-display#post-14598</link>
			<pubDate>Thu, 16 Dec 2010 17:23:49 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">14598@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Checkbox lists are problematic to dynamically populate. Because a checkbox isn't like a radio button or drop down where it's one field that consists of options.  Each checkbox is actually an individual field. &#60;/p&#62;
&#60;p&#62;The way fields work in Gravity Forms they impact the Admin (available fields in the entry list, etc.).  List items in radio buttons and drop downs do not because the individual items themselves are not a field.&#60;/p&#62;
&#60;p&#62;For that reason you aren't going to be able to populate them dynamically like you can a drop down or radio button.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Darren on "Is there a filter to replace existing fields with something else in form display"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/is-there-a-filter-to-replace-existing-fields-with-something-else-in-form-display#post-14588</link>
			<pubDate>Thu, 16 Dec 2010 16:32:59 +0000</pubDate>
			<dc:creator>Darren</dc:creator>
			<guid isPermaLink="false">14588@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see that you have the &#34;gform_field_choices_{$field[&#34;formId&#34;]}&#34; but am having trouble following the logic of how it works.  What I'd like to do is take a field (I'm assuming that is something like 'field_1_3' for a checklist that I've set up for the form and &#60;em&#62;replace&#60;/em&#62; all the inputs with a dynamic list I'm building from another place.&#60;/p&#62;
&#60;p&#62;Am I looking at the correct filter for this?&#60;/p&#62;
&#60;p&#62;Could I have a little bit of help in how to structure the add_filter to match where I need to place my new inputs?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
