<?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 User Favorites: Janus65</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/janus65'>janus65</a></link>
		<description>Gravity Support Forums User Favorites: Janus65</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:00:17 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145577</link>
			<pubDate>Sun, 10 Feb 2013 14:39:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145577@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.  I'm still thinking about the double price thing ...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Prestotaxilimo on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145553</link>
			<pubDate>Sun, 10 Feb 2013 12:38:05 +0000</pubDate>
			<dc:creator>Prestotaxilimo</dc:creator>
			<guid isPermaLink="false">145553@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;AWESOME!! It worked wonderfully!! Thank you!!!!! Now, I just have to get the total to double on those dates and we are set! LOVING Gravity forms! THANK YOU AGAIN! you guys here are so awesome!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145509</link>
			<pubDate>Sun, 10 Feb 2013 09:43:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145509@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, I changed my example before I posted it and posted the wrong version.  Replace that code with this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;#39;gform_field_value_uuid&#38;#39;, &#38;#39;customer_reference&#38;#39;);
function customer_reference(){
	$number = mt_rand(10000000000, 99999999999);
	return &#38;#39;PLT&#38;#39; . substr($number,0,11);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I just changed it to add 3 more digits as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Prestotaxilimo on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145406</link>
			<pubDate>Sun, 10 Feb 2013 02:27:59 +0000</pubDate>
			<dc:creator>Prestotaxilimo</dc:creator>
			<guid isPermaLink="false">145406@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The great news is the code worked, so when I submitted a form, I got this 72200747 , would there be a way to add the PTL to the beginning of that # and maybe adding another 3 numbers to that just to be sure we dont get a repeat? THANK YOU! So sorry for being a pain!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Prestotaxilimo on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145405</link>
			<pubDate>Sun, 10 Feb 2013 02:23:31 +0000</pubDate>
			<dc:creator>Prestotaxilimo</dc:creator>
			<guid isPermaLink="false">145405@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK HERE GOES :D I'll be back to tell you how it went!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145400</link>
			<pubDate>Sun, 10 Feb 2013 02:16:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145400@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Remove all the code from before and just use the code here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/send-confirmation-number#post-145386&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/send-confirmation-number#post-145386&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Those 5 lines instead of the 11 which resulted in these long numbers:&#60;br /&#62;
a380db3e-19b7-30b1-f037-6305cf856a4f
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Prestotaxilimo on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145391</link>
			<pubDate>Sun, 10 Feb 2013 01:58:43 +0000</pubDate>
			<dc:creator>Prestotaxilimo</dc:creator>
			<guid isPermaLink="false">145391@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Oh yes, most definitely, I dont mind it being called uuid. The code I am currently using is the first one that generates a serial number but of course, I would prefer more of a reference number that starts with PTL (Presto Taxi Limo) and then a mix of 11 numbers together with letters or just numbers is fine too. So it would look something like this PTL87X98CB987F, It should be guaranteed unique only because we will need to reference this number back to the client when they call in and it would suck if we had a duplicate happen but I think because the number is so complex, it probably is unlikely that it will happen, I dont think that will be an issue. So currently i'm using this code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_uuid&#38;quot;, &#38;quot;uuid&#38;quot;);
function uuid($prefix = &#38;#39;&#38;#39;)
 {
    $chars = md5(uniqid(mt_rand(), true));
    $uuid  = substr($chars,0,8) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,8,4) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,12,4) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,16,4) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,20,12);
    return $prefix . $uuid;
  }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and its working great, could you guide me on how I can add your code so that my site doesn't crash? lol THANK YOU AGAIN, I feel we are so close to getting this right!&#60;/p&#62;
&#60;p&#62;P.S. If I add your code, should I remove the above code I have been using or do they go together? You have been most helpful, as you can probably tell, I have no experience with this stuff but im very intrigued!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145386</link>
			<pubDate>Sun, 10 Feb 2013 01:41:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">145386@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would forget about your second example.  We can make the first example more useful.  Does the number need to be guaranteed unique, and what does this number mean to you: PTL38700987 (other than the PLT part)?  Can we just generate a random 8 digit number, and add PLT to the front of it?  You can use this if that works for you:&#60;/p&#62;
&#60;p&#62;NOTE: see revised code here:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/send-confirmation-number#post-145509&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/send-confirmation-number#post-145509&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Did you already add a uuid field to your form which will hold this value?  Are you OK with it being called uuid?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Prestotaxilimo on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145376</link>
			<pubDate>Sun, 10 Feb 2013 01:00:36 +0000</pubDate>
			<dc:creator>Prestotaxilimo</dc:creator>
			<guid isPermaLink="false">145376@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, I also wanted to show you the code that messed up the wordpress for me and forced me to do a restore:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_filter(&#38;quot;gform_field_value_uuid&#38;quot;, &#38;quot;get_unique&#38;quot;);

function get_unique(){

    $prefix = &#38;quot;BDWA&#38;quot;; // update the prefix here

    do {
        $unique = mt_rand();
        $unique = substr($unique, 0, 8);
        $unique = $prefix . $unique;
    } while (!check_unique($unique));

    return $unique;
}

function check_unique($unique) {
    global $wpdb;

    $table = $wpdb-&#38;gt;prefix . &#38;#39;rg_lead_detail&#38;#39;;
    $form_id = 7; // update to the form ID your unique id field belongs to
    $field_id = 1; // update to the field ID your unique id is being prepopulated in
    $result = $wpdb-&#38;gt;get_var(&#38;quot;SELECT value FROM $table WHERE form_id = &#38;#39;$form_id&#38;#39; AND field_number = &#38;#39;$field_id&#38;#39; AND value = &#38;#39;$unique&#38;#39;&#38;quot;);

    if(empty($result))
        return true;

    return false;
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I go this code from this link:  &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/guid-entry-id&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/guid-entry-id&#60;/a&#62;   it was posted by David smith, I did as he suggested, changed the prefix, form ID and field ID and then it completely crashed my site, I had to call support to do a restore :( not sure what I did wrong but im terrified to touch the code lol, I did try the first code that generates that long serial number and that word wonderfully, its just that the number is way tooooo long. Thanks again.&#60;/p&#62;
&#60;p&#62;Marlene&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://www.prestotaxilimo.com&#34; rel=&#34;nofollow&#34;&#62;https://www.prestotaxilimo.com&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Prestotaxilimo on "Send Confirmation Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/send-confirmation-number#post-145359</link>
			<pubDate>Sun, 10 Feb 2013 00:03:18 +0000</pubDate>
			<dc:creator>Prestotaxilimo</dc:creator>
			<guid isPermaLink="false">145359@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris, At the moment, the Entry ID seems to be a little small, I was looking for a Reference number to be more like : PTL38700987 or something like that, I did come across a code here on this gravity forms forum and I inputted this code onto theme functions functions.php, the code is as follows:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_uuid&#38;quot;, &#38;quot;uuid&#38;quot;);
function uuid($prefix = &#38;#39;&#38;#39;)
 {
    $chars = md5(uniqid(mt_rand(), true));
    $uuid  = substr($chars,0,8) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,8,4) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,12,4) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,16,4) . &#38;#39;-&#38;#39;;
    $uuid .= substr($chars,20,12);
    return $prefix . $uuid;
  }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But it generates a customer ID number like this: a380db3e-19b7-30b1-f037-6305cf856a4f&#60;br /&#62;
It looks more like a serial number than a customer reference number lol I'm afraid to manipulate this code because I added another code that I found on the forums here and it completely crashed my wordpress site and I had to do a restore last night, I nearly had a heart attack! Any advice is really appreciated! Thanks again for your help!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
