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.

Adding a Reference Number during form submit

  1. Gavin
    Member

    Hi, I had this problem, I am developing an application form, then I want to put a reference number on its form submission. Do you guys have any idea how can I do this? Any help would be appreciated. Thank you.

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  2. Use a hidden field and then populate that hidden field dynamically with the reference number.

    Here is a post that discusses how to populate a hidden field:

    http://www.gravityhelp.com/forums/topic/using-custom-fields-to-populate-hidden-fields#post-17616

    Posted 13 years ago on Tuesday March 29, 2011 | Permalink
  3. Gavin
    Member

    Oh okay, let me try that, but I am also thinking to just the unique id of form? Do you think it is safe if I can rely on that, because I dont want to create a function for the random generation of the reference no. but if it is not that safe, I think I need to go with the script. What do you think? Thanks!

    Posted 13 years ago on Wednesday March 30, 2011 | Permalink
  4. Other than the Entry ID, which is sequential, there isn't a unique ID generated when an entry is created.

    Posted 13 years ago on Wednesday March 30, 2011 | Permalink