<?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: Unique code for each response</title>
		<link>https://legacy.forums.gravityhelp.com/topic/unique-code-for-each-response</link>
		<description>Gravity Support Forums Topic: Unique code for each response</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 17:24:43 +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/unique-code-for-each-response" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Unique code for each response"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unique-code-for-each-response#post-13718</link>
			<pubDate>Wed, 01 Dec 2010 13:01:16 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13718@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, you can basically do whatever you want with it but you would need to know PHP and be able to write the custom PHP to do so.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ryanopaz on "Unique code for each response"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unique-code-for-each-response#post-13706</link>
			<pubDate>Wed, 01 Dec 2010 09:57:26 +0000</pubDate>
			<dc:creator>ryanopaz</dc:creator>
			<guid isPermaLink="false">13706@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Using this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ( function_exists(&#38;#39;register_sidebar_widget&#38;#39;) )
    register_sidebar_widget(__(&#38;#39;Search&#38;#39;), &#38;#39;widget_webdemar_search&#38;#39;);

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,1,4);
    return $prefix . $uuid;
  }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and excuse my ignorance, but can I add something here: function uuid($prefix = 'xxxxx')&#60;br /&#62;
that would insert a word from the form that they are currently submitting?&#60;/p&#62;
&#60;p&#62;thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ryanopaz on "Unique code for each response"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unique-code-for-each-response#post-13659</link>
			<pubDate>Tue, 30 Nov 2010 16:17:21 +0000</pubDate>
			<dc:creator>ryanopaz</dc:creator>
			<guid isPermaLink="false">13659@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;awesome but is there any simple way to add a prefix based on which form it's coming from?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Unique code for each response"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unique-code-for-each-response#post-13658</link>
			<pubDate>Tue, 30 Nov 2010 16:10:56 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13658@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a post with a code snippet that does something similar.  It populates a hidden field with a unique id.  You can customize the code snippet to suit your unique id needs.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.gravityhelp.com/topic/guid-entry-id#post-3993&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/guid-entry-id#post-3993&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ryanopaz on "Unique code for each response"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/unique-code-for-each-response#post-13657</link>
			<pubDate>Tue, 30 Nov 2010 16:09:10 +0000</pubDate>
			<dc:creator>ryanopaz</dc:creator>
			<guid isPermaLink="false">13657@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We are running a contest where we'll have many entries coming in and with each entry attachments. What we want is a hidden field that will give each entry a unique number. &#60;/p&#62;
&#60;p&#62;We'll have 5 categories, so the number would be depending on the form that is used, &#34;FA4321&#34;&#60;/p&#62;
&#60;p&#62;where the &#34;FA is the name of the category and the &#34;4321&#34; are randomly or sequentially assigned. &#60;/p&#62;
&#60;p&#62;We need this since people might register in more than one category and we would like to link all their entries by a number to one person. &#60;/p&#62;
&#60;p&#62;I hope this is clear, though I'm sure i&#34;ll need to help explain further. The key though is to get a id number for each submission. &#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
