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 in a form, controlled by a number field

  1. Intellectawebb
    Member

    This example is on my localhost, so I can't link to it. I am making a form for a event. No really advanced fields are used, name, email, company and the number of visitors for this particular event. I am using a number field for the number of visitors field. Have it turned on min 1 and max 20 visitors for each booking.

    There is a maximum of 335 spots open, when the number of visitors exceed 335 I want the form to be inaccessible. Is it possible to control this in Gravity Forms without having to check and add the number of visitors manually? I guess a filter or action hook might do the job, if it aint possible in the settings for the particular form.

    Any tips would be helpful how I could achieve this! Thanks in advance!

    Posted 13 years ago on Wednesday November 3, 2010 | Permalink
  2. This isn't currently possible with the existing feature set. It would be possible to implement it using custom code, but it would be a fairly complex customization that would involve checking on form submission the sum of all of those number fields to see if it has exceeded the available visitors, etc. So it is possible using hooks but it's a pretty complex customization. How comfortable are you with PHP and WordPress development?

    Posted 13 years ago on Wednesday November 3, 2010 | Permalink
  3. zodiakx
    Member

    I'm interested in the exact same thing as Intellectawebb. So if a solution exists, please post it here.

    Posted 13 years ago on Wednesday November 3, 2010 | Permalink
  4. Intellectawebb
    Member

    Well I am pretty comfortable with PHP and WordPress development (mostly theme development for WP). Well I just need it for one form, I don't know if it makes it simpler. But couldn't you just add all number of participants and if it exceeds 335, don't display the form. I would need a push in the right direction what hooks I would need to use or could make good use of.

    Any ideas?

    Posted 13 years ago on Thursday November 4, 2010 | Permalink