<?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: Oops! We could not locate your form - tied to call in functions.php</title>
		<link>https://legacy.forums.gravityhelp.com/topic/oops-we-could-not-locate-your-form-tied-to-call-in-functionsphp</link>
		<description>Gravity Support Forums Topic: Oops! We could not locate your form - tied to call in functions.php</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:40:14 +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/oops-we-could-not-locate-your-form-tied-to-call-in-functionsphp" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Oops! We could not locate your form - tied to call in functions.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/oops-we-could-not-locate-your-form-tied-to-call-in-functionsphp#post-119489</link>
			<pubDate>Fri, 11 Jan 2013 11:56:01 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">119489@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can certainly use multiple gform_pre_render_{ID} filters, for different forms.  I have dozens of them in my functions.php, so this is not the source of your problem.  However, you found a work around and it's working for you which is the important thing.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>agoranet on "Oops! We could not locate your form - tied to call in functions.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/oops-we-could-not-locate-your-form-tied-to-call-in-functionsphp#post-119461</link>
			<pubDate>Fri, 11 Jan 2013 11:16:22 +0000</pubDate>
			<dc:creator>agoranet</dc:creator>
			<guid isPermaLink="false">119461@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found a way around this.  I'm using the generic &#34;gform_pre_render&#34; filter instead of doing the forms separately, e.g. &#34;gform_pre_render_1&#34; and &#34;gform_pre_render_2&#34;&#60;/p&#62;
&#60;p&#62;Then, within my gform_pre_render function I'm using:&#60;br /&#62;
switch ($form[&#34;id&#34;]) { } to provide chunks of code that apply to the specific form being used at the time.&#60;/p&#62;
&#60;p&#62;I guess it doesn't want you to have more than one gform_pre_render_* filter at a time even though they are for different forms.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>agoranet on "Oops! We could not locate your form - tied to call in functions.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/oops-we-could-not-locate-your-form-tied-to-call-in-functionsphp#post-117780</link>
			<pubDate>Wed, 09 Jan 2013 15:47:10 +0000</pubDate>
			<dc:creator>agoranet</dc:creator>
			<guid isPermaLink="false">117780@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;New test to add to the puzzle...&#60;br /&#62;
I added a new form (ID = 4) and put one text field on it.&#60;br /&#62;
The form works fine as long as no code in functions.php references it.  If I add that same &#34;hello&#34; code but for form #4, form#4 can't be found.&#60;/p&#62;
&#60;p&#62;In all cases, form #2 still works fine.&#60;/p&#62;
&#60;p&#62;I wanted to rule out that there was something wrong with Form #1 itself but a new form does the same thing.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>agoranet on "Oops! We could not locate your form - tied to call in functions.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/oops-we-could-not-locate-your-form-tied-to-call-in-functionsphp#post-117777</link>
			<pubDate>Wed, 09 Jan 2013 15:37:34 +0000</pubDate>
			<dc:creator>agoranet</dc:creator>
			<guid isPermaLink="false">117777@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have read through the other &#34;Oops!&#34; posts and have tried the Meta Recovery Tool on my form as well as changing to a standard theme but I still get the following pattern:&#60;/p&#62;
&#60;p&#62;I have 2 forms.   One of them (form with id=2) works fine even with a lot of custom filters in the functions.php file.  The other one (form with id=1) works fine as long as I don't have any code for that form in the functions.php file.  As soon as I add any code trying to work with that particular form, I cannot preview or use the form - I get the &#34;Oops!&#34; message.&#60;/p&#62;
&#60;p&#62;As a test, I tried adding this to my functions.php form and it breaks:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_pre_render_1&#38;quot;, &#38;quot;setup_item_order_form&#38;quot;, 10, 2);
function setup_item_order_form($form) {

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If I add:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;quot;gform_pre_render_1&#38;quot;, &#38;quot;setup_item_order_form&#38;quot;, 10, 2);
function setup_item_order_form($form) {
     echo &#38;quot;hello&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then it shows this when I load the page containing the form so it's getting to the pre-render:&#60;br /&#62;
hello&#60;br /&#62;
Oops! We could not locate your form.&#60;/p&#62;
&#60;p&#62;If I remove those lines, the form runs fine with or without the custom code that is there for Form #2.&#60;/p&#62;
&#60;p&#62;Any ideas?&#60;/p&#62;
&#60;p&#62;Setup is:&#60;br /&#62;
Gravity Forms: 1.6.11&#60;br /&#62;
WordPress: 3.5&#60;br /&#62;
PHP Version: 5.3.2
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
