<?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: Incremental Numbering In Hidden Field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/incremental-numbering-in-hidden-field</link>
		<description>Gravity Support Forums Topic: Incremental Numbering In Hidden Field</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 18:01:03 +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/incremental-numbering-in-hidden-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Incremental Numbering In Hidden Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/incremental-numbering-in-hidden-field#post-44472</link>
			<pubDate>Tue, 20 Dec 2011 00:22:56 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">44472@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It should not be appearing outside the table format of the email.  Can you paste the source of an email at pastebin.com or pastie.org so we can see what's happening?&#60;/p&#62;
&#60;p&#62;Also, are you using the {all_fields} token or have you crafted a custom notification?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tasty on "Incremental Numbering In Hidden Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/incremental-numbering-in-hidden-field#post-44436</link>
			<pubDate>Mon, 19 Dec 2011 19:04:55 +0000</pubDate>
			<dc:creator>tasty</dc:creator>
			<guid isPermaLink="false">44436@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl,&#60;/p&#62;
&#60;p&#62;So the numbering part makes sense. Everything can be sequential regardless of the form. I currently have 2, and will probably have 3 total. So that is fine. It actually works better for my needs to have them sequential regardless of the form.&#60;/p&#62;
&#60;p&#62;Implementation, what you linked to seems a bit over my head, but it looks like it is built in and I did not notice?&#60;/p&#62;
&#60;p&#62;So to implement it, I do the following:&#60;br /&#62;
Go to edit forms &#38;gt; notifications &#38;gt; then paste in: &#34;CustomerID: C79000{entry_id}&#34; where I want the number to show up in my email.&#60;/p&#62;
&#60;p&#62;And when I tested it it, it went from &#34;CustomerID: C7900011&#34; to &#34;CustomerID: C7900012&#34;. So that seems like it is totally fine.&#60;/p&#62;
&#60;p&#62;When I get to 99 though it seems like it will break.&#60;/p&#62;
&#60;p&#62;CustomerID: C7900099&#60;br /&#62;
CustomerID: C79000100 instead of:&#60;br /&#62;
CustomerID: C7900100&#60;/p&#62;
&#60;p&#62;I would love to somehow be able to put {entry_id; ddddddd} in this, in order for the numbers to start at 0000001 vs 1.&#60;/p&#62;
&#60;p&#62;In my case though I think I can just do C79-X and it will go from there.&#60;/p&#62;
&#60;p&#62;In my emails it is appearing outside of the table format of the email, which is fine for my needs, but to make it within the table would require some of the &#34;php tweaks&#34; you mentioned?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Incremental Numbering In Hidden Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/incremental-numbering-in-hidden-field#post-44407</link>
			<pubDate>Mon, 19 Dec 2011 17:08:57 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">44407@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do you need the number to be truly sequential? &#60;/p&#62;
&#60;p&#62;If so, then entry id won't be ideal because the entry id is sequential, but not per form... it's sequential across all your forms.  Meaning entry id 1 and entry id 2 may be form form id 1, but entry id 3 might be for form id 2.  Entries are stored in the same table so the id is sequential as far as all entries go.&#60;/p&#62;
&#60;p&#62;If it needs to be truly sequential and incremental then you would have to do this using custom PHP and dynamically populate the hidden field by first querying the existing entries and seeing what the last number was and then incrementing it.&#60;/p&#62;
&#60;p&#62;If you don't care that the numbers aren't truly sequential, but are incremental, then you could use the entry id.  However, the entry id doesn't exist until the entry is created so you can't use the entry_id merge tag in the default value field of the hidden field because the entry id doesn't yet exist when that is processed.&#60;/p&#62;
&#60;p&#62;What you would have to do is use the gform_after_submission hook and dynamically populate the field with the entry_id from the entry object.&#60;/p&#62;
&#60;p&#62;So either way, to do what you want to do is going to require some custom PHP.  Here is documentation for the gform_after_submission hook:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The gform_after_submission hook has access to the entry object which is documented here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Entry_Object&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Entry_Object&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tasty on "Incremental Numbering In Hidden Field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/incremental-numbering-in-hidden-field#post-44379</link>
			<pubDate>Mon, 19 Dec 2011 15:49:13 +0000</pubDate>
			<dc:creator>tasty</dc:creator>
			<guid isPermaLink="false">44379@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I searched around and saw a few old answers to a similar question, with talks of adding the feature. Not sure where things stand on it, or if a workaround has been created?&#60;/p&#62;
&#60;p&#62;What I would like to do is have a unique number / ID submitted to me when a user fills out a form. I saw something about entry id but no clue how to add this to a hidden field?&#60;/p&#62;
&#60;p&#62;So if possible, how would I pass something like&#60;/p&#62;
&#60;p&#62;c79#######&#60;br /&#62;
where c79 stays constant, but the ####### are incremental?&#60;/p&#62;
&#60;p&#62;I am okay if they skip or worst case even random.&#60;br /&#62;
Right now I have&#60;br /&#62;
{date_mdy} - {referer} - {user_agent} - {ip}&#60;/p&#62;
&#60;p&#62;In my hidden field and it works perfectly. Can I also add c790{entry_id}? or is much more complex then that?&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
