PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Add unique number to form submission

  1. I have searched the support forum for this but not found exactly what I am after. I'm pretty sure this must have been asked...

    I would like to generate a unique number after say 3 characters on a form that would be recorded in the database and sent on a conformation email to the person who submitted it. Something like "RET123456". Obviously this would be different to each person filling the form in.

    Thank you for your help in advance

    Posted 11 years ago on Tuesday September 11, 2012 | Permalink
  2. The entry ID is unique across all forms. You can combine the entry ID with a string of your choice (like RET) and use that in your notifications if you like. Is that unique enough for you? Here is how we did it the last time:
    http://www.gravityhelp.com/forums/topic/entry-ids#post-74963

    If not, we've also created unique IDs like this:
    http://www.gravityhelp.com/forums/topic/guid-entry-id#post-14915
    http://www.gravityhelp.com/forums/topic/add-lead-id-to-notification-email

    Posted 11 years ago on Saturday September 15, 2012 | Permalink
  3. awesome, thanks

    Posted 11 years ago on Sunday September 16, 2012 | Permalink
  4. Sure. Let us know if you need any help customizing that code.

    Posted 11 years ago on Sunday September 16, 2012 | Permalink