<?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: Where exactly to add the code in form_detail.php?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/where-exactly-to-add-the-code-in-form_detailphp</link>
		<description>Gravity Support Forums Topic: Where exactly to add the code in form_detail.php?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:38:15 +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/where-exactly-to-add-the-code-in-form_detailphp" rel="self" type="application/rss+xml" />

		<item>
			<title>elucia on "Where exactly to add the code in form_detail.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-exactly-to-add-the-code-in-form_detailphp#post-29888</link>
			<pubDate>Wed, 13 Jul 2011 11:47:40 +0000</pubDate>
			<dc:creator>elucia</dc:creator>
			<guid isPermaLink="false">29888@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;THANK YOU, Kevin!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Where exactly to add the code in form_detail.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-exactly-to-add-the-code-in-form_detailphp#post-29855</link>
			<pubDate>Tue, 12 Jul 2011 21:03:59 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">29855@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You don't need to modify any of the core plugin files. You add that code to your theme's functions.php file.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elucia on "Where exactly to add the code in form_detail.php?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-exactly-to-add-the-code-in-form_detailphp#post-29844</link>
			<pubDate>Tue, 12 Jul 2011 18:58:55 +0000</pubDate>
			<dc:creator>elucia</dc:creator>
			<guid isPermaLink="false">29844@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there&#60;/p&#62;
&#60;p&#62;I would like to add my own list to the Predefined Choices field; unfortunately this is not something built in to Gforms but I hope you will make that an option soon. In the meantime, I am a novice at PHP.&#60;/p&#62;
&#60;p&#62;I did find the solution in this post: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/using-the-gform-predefined-choices-filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/using-the-gform-predefined-choices-filter&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;but I don't know where EXACTLY in the form_detail.php I need to paste this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_filter(&#38;quot;gform_predefined_choices&#38;quot;, &#38;quot;add_predefined_choice&#38;quot;);
function add_predefined_choice($choices){
   $choices[&#38;quot;My New Choice&#38;quot;] = array(&#38;quot;Choice 1&#38;quot;, &#38;quot;Choice 2&#38;quot;, &#38;quot;Choice 3&#38;quot;);
   return $choices;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I do understand I need to add my own title and array/choices into the code before inserting it; but just where to PASTE the code into the form_detail.php  so I don't break the plugin??&#60;/p&#62;
&#60;p&#62;thanks!!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
