<?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: Random Number</title>
		<link>https://legacy.forums.gravityhelp.com/topic/random-number</link>
		<description>Gravity Support Forums Topic: Random Number</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:02:39 +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/random-number" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Random Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-number#post-52247</link>
			<pubDate>Tue, 13 Mar 2012 12:11:00 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">52247@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Well, to start your entries at a specific number, if you are comfortable with database table manipulation/queries, you could set the number that the auto increment field starts with. If you aren't really comfortable modifying the database, you could always submit a form until your entry id reaches the number you want your live form to start with (not the greatest way).&#60;/p&#62;
&#60;p&#62;I was trying to give you the easiest way to do it. There is another way, which would require a little bit of php code. If the number can be completely random, you can add a little bit of code to your form to populate a hidden field. The hidden field can then be sent in your email notification. This would involve adding the hidden field, checking the setting &#34;Allow field to be populated dynamically&#34; and adding a &#34;Parameter name&#34; in the input box that appears. Then you would add a Gravity Forms hook to your theme's functions.php file which would generate a random number which populates the hidden field. Then in the admin, you would select this hidden field as one of the fields which is sent in your email notification. Below is an example of the code you would add. This uses the hook &#34;gform_field_value_$parameter_name (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_field_value_$parameter_name)&#60;/a&#62;.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_random_number&#38;quot;, &#38;quot;generate_random_number&#38;quot;);
function generate_random_number($value){
   return mt_rand();
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>bt-chadski on "Random Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-number#post-52167</link>
			<pubDate>Mon, 12 Mar 2012 17:27:42 +0000</pubDate>
			<dc:creator>bt-chadski</dc:creator>
			<guid isPermaLink="false">52167@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Dana,&#60;br /&#62;
This is great to know. Thank you. I have only 1 follow up question -&#60;/p&#62;
&#60;p&#62;Is there a way to make this RMA number start at let's say 000123?&#60;br /&#62;
 (otherwise I understand it will start 'counting' submissions')
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "Random Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-number#post-52149</link>
			<pubDate>Mon, 12 Mar 2012 15:47:14 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">52149@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, bt-chadski,&#60;/p&#62;
&#60;p&#62;Each form submission creates an entry and those entries have a unique id when stored in the database. If you do not need a specific format for the number, I would recommend using this unique id. You are able to add this as a merge tag in the email notifications that are sent out. You can add additional text to the number. This number will be unique across all of your forms.&#60;/p&#62;
&#60;p&#62;Let me know if you still have questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bt-chadski on "Random Number"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/random-number#post-51243</link>
			<pubDate>Sun, 04 Mar 2012 14:00:02 +0000</pubDate>
			<dc:creator>bt-chadski</dc:creator>
			<guid isPermaLink="false">51243@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Unfortunately, I am unable to see support forums (even though this question has been asked).&#60;/p&#62;
&#60;p&#62;For each person filling out a contact form, we need a number generated and then included in the autoresponder message to them and to us. (form to be used for RMA# generation)&#60;/p&#62;
&#60;p&#62;So we need it start at let's say 000111 and then +1 for each new submission.&#60;/p&#62;
&#60;p&#62;Is this doable with Gravity forms and what skill level is required to get this setup?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
