<?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: Location to insert form submission hooks</title>
		<link>https://legacy.forums.gravityhelp.com/topic/location-to-insert-form-submission-hooks</link>
		<description>Gravity Support Forums Topic: Location to insert form submission hooks</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 16:20:31 +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/location-to-insert-form-submission-hooks" rel="self" type="application/rss+xml" />

		<item>
			<title>Jamison on "Location to insert form submission hooks"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/location-to-insert-form-submission-hooks#post-53974</link>
			<pubDate>Mon, 02 Apr 2012 05:49:24 +0000</pubDate>
			<dc:creator>Jamison</dc:creator>
			<guid isPermaLink="false">53974@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have the same issue, when I tried to insert the simple code (see below) to generate a random number in the template functions.php file:&#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_field_value_uuid&#34;, &#34;uuid&#34;);&#60;br /&#62;
function uuid($prefix = '')&#60;br /&#62;
 {&#60;br /&#62;
    $chars = md5(uniqid(mt_rand(), true));&#60;br /&#62;
    $uuid  = substr($chars,0,8) . '-';&#60;br /&#62;
    $uuid .= substr($chars,8,4) . '-';&#60;br /&#62;
    $uuid .= substr($chars,12,4) . '-';&#60;br /&#62;
    $uuid .= substr($chars,16,4) . '-';&#60;br /&#62;
    $uuid .= substr($chars,20,12);&#60;br /&#62;
    return $prefix . $uuid;&#60;br /&#62;
  }&#60;/p&#62;
&#60;p&#62;I've made sure that the parameter name is set to uuid in the form and I can't get the code to generate a random number. I am not sure what else I needed to do on top of adding the code to the template functions.php file. Please assist. I've been stuck trying to troubleshoot this for many hours. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Location to insert form submission hooks"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/location-to-insert-form-submission-hooks#post-46938</link>
			<pubDate>Fri, 20 Jan 2012 02:10:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">46938@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please explain what you are trying to do.  Are you trying to use the PHP function call to insert a form?  If so, you would insert the function call into the template file, not functions.php.  If it's not working, is it possible the form uses conditional logic?  If so, that is likely because when using the function call to insert a form, you also need to enqueue the Gravity Forms scripts, otherwise, the form will be hidden.&#60;/p&#62;
&#60;p&#62;Embedding the form with the function call:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Function_Call&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Function_Call&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Enqueuing your own scripts is also required:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If none of that helps you, please share a URL to your site, and explain what code you are trying to add, exactly, and where you tried adding it.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wollemi on "Location to insert form submission hooks"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/location-to-insert-form-submission-hooks#post-46812</link>
			<pubDate>Wed, 18 Jan 2012 23:47:10 +0000</pubDate>
			<dc:creator>wollemi</dc:creator>
			<guid isPermaLink="false">46812@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I tried adding these form submission hooks in functions.php as well as within the template that displays the form but it does not seem to work. What am I doing wrong?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
