<?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: Hook in the email notifcaiton (a dynamic URL in the email)</title>
		<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email</link>
		<description>Gravity Support Forums Topic: Hook in the email notifcaiton (a dynamic URL in the email)</description>
		<language>en-US</language>
		<pubDate>Fri, 17 Apr 2026 08:07:57 +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/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-92235</link>
			<pubDate>Sat, 17 Nov 2012 03:13:06 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">92235@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you fcbinfo, for the snippet.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Enrico on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91691</link>
			<pubDate>Fri, 16 Nov 2012 00:01:55 +0000</pubDate>
			<dc:creator>Enrico</dc:creator>
			<guid isPermaLink="false">91691@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great!&#60;br /&#62;
thanks team.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fcbinfo on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91260</link>
			<pubDate>Wed, 14 Nov 2012 23:12:01 +0000</pubDate>
			<dc:creator>fcbinfo</dc:creator>
			<guid isPermaLink="false">91260@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Enrico, thank you for your post. That will help me to do what i need.&#60;/p&#62;
&#60;p&#62;To generate a random ID, you can do a function with time, date, client IP (use str replace to delete dots)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function generateID(){
	$a = date(&#38;#39;dmY&#38;#39;);
	$b = date(&#38;#39;his&#38;#39;);
	$c = str_replace(&#38;#39;.&#38;#39;, &#38;#39;&#38;#39;, $_SERVER[&#38;#39;REMOTE_ADDR&#38;#39;]);
	$d = mt_rand();
	$generatedid = md5($a.$b.$c.$d);
	return $generatedid;
}

add_action(&#38;quot;gform_pre_submission&#38;quot;, &#38;quot;pre_submission_handler&#38;quot;);
function pre_submission_handler($form){
    $_POST[&#38;quot;input_14&#38;quot;] = generateID();
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This will give you a short example.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Enrico on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91125</link>
			<pubDate>Wed, 14 Nov 2012 12:42:34 +0000</pubDate>
			<dc:creator>Enrico</dc:creator>
			<guid isPermaLink="false">91125@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would appreciate if you can send me any example link as i am generating ID in the above function i am using which is post submission
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91113</link>
			<pubDate>Wed, 14 Nov 2012 11:40:45 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">91113@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You will use the pre-submission filter again with a different function. The function will just take your generated transaction ID and put it in the field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Enrico on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91112</link>
			<pubDate>Wed, 14 Nov 2012 11:37:55 +0000</pubDate>
			<dc:creator>Enrico</dc:creator>
			<guid isPermaLink="false">91112@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok sure i am gona create a new field, but is there any already built in function in gravity to push the data into table? or i have to do it myself?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91110</link>
			<pubDate>Wed, 14 Nov 2012 11:30:03 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">91110@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The transaction_id field is one used by the e-commerce sites (Paypal and Authorize.net). You could create your own Transaction ID field, and populate that field with your generated ID.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Enrico on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91108</link>
			<pubDate>Wed, 14 Nov 2012 11:16:49 +0000</pubDate>
			<dc:creator>Enrico</dc:creator>
			<guid isPermaLink="false">91108@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you sir. here is my example&#60;/p&#62;
&#60;p&#62;conditional_message($form) {&#60;br /&#62;
$my_transactiion_id = mytechnique to generate id; (10 digitis long randomly generated)&#60;br /&#62;
// my modified form for autoResponder&#60;br /&#62;
$form['autoResponder']['message'] .= &#34;$link&#34;;&#60;br /&#62;
// return modified form&#60;br /&#62;
return $form;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;I want to add $my_transactiion_id in the transaction_id field of gravity table. is there any quickest way can you please write a quick example? this will help me thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91104</link>
			<pubDate>Wed, 14 Nov 2012 10:54:04 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">91104@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't because I am not sure how you would want to build and store your transaction numbers. You know that each submission does get an entry ID though, right, and that it automatically increments?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Enrico on "Hook in the email notifcaiton (a dynamic URL in the email)"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hook-in-the-email-notifcaiton-a-dynamic-url-in-the-email#post-91098</link>
			<pubDate>Wed, 14 Nov 2012 10:35:44 +0000</pubDate>
			<dc:creator>Enrico</dc:creator>
			<guid isPermaLink="false">91098@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Sir,&#60;br /&#62;
Can you please write an example what will be the quickest way?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
