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.

Max entries for part of form

  1. Jamie M
    Member

    Hi,

    I realise that a form as a whole can be disabled when an overall number of submissions is reached, but how would I go about implementing this feature for one field in particular.

    For example, a series of classes may have a single entry form like so:
    Dance (Max 30 participants)
    Singing (Max 40 participant)
    Instrumental (Max 50 participants)
    ... and so on.

    When the max number of people have selected 'Dance', i.e. 30, then the actual option of entering in this is disabled.

    Possible?

    Posted 12 years ago on Sunday February 26, 2012 | Permalink
  2. It's possible but will require some customization. Rather than having it all in one form, you could have multiple forms, with each form limited to a different number of entries before it's disabled.

    If you would like to proceed with a custom solution, you will have to use the gform_pre_render filter to disable or otherwise modify parts of the form before you display it. We can give you some pointers on how to accomplish it, but we won't be able to code the solution for you.

    Posted 12 years ago on Sunday February 26, 2012 | Permalink
  3. Jamie M
    Member

    I guess I'll just wait until the field in question reaches 550 submissions and then manually disable it. If there's any spillover I'll just have to contact them.

    Posted 12 years ago on Sunday February 26, 2012 | Permalink