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.

autoincrement a Value

  1. Hi I have a Registration Form, it has a field for Registration NO, Now I want this form should be automatically filled in the format i.e. (Some starting string like REG and then auto increment no 001) REG0001,
    When another user fill a form it will automatically be REG0002

    Thanks & Regards
    Vivek Saini

    Posted 13 years ago on Friday February 4, 2011 | Permalink
  2. HI Vivek,

    This is possible via custom code and Gravity Forms hooks. This thread shows you how do this with a unique ID (not an auto increment):

    An auto-increment id would be similar but instead of checking for the unique ID, you'd check for the last submitted registration ID and then just add one. One other thing important thing to note is that this (and the provided example) should actually be run from the gform_post_submission hook to prevent the same id from being submitted by multiple users.

    If you are not familiar with PHP, you might want to hire a developer to lend you some assistance.

    Posted 13 years ago on Friday February 4, 2011 | Permalink