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.

Checkboxes with Quantities

  1. I would like Checkboxes fields with limited numbers time being selected ( like products quantity ) over different submits. If particular Checkbox being selected reaching the limits over different form submit then this checkbox selection will be disabled.

    Posted 11 years ago on Monday June 4, 2012 | Permalink
  2. David Peralty

    I am sorry, but I don't understand what you are trying to do. Can you please give me more information?

    Posted 11 years ago on Monday June 4, 2012 | Permalink
  3. Thank you for quick reply!
    For example: There are several tasks letting people to applying for by selecting checkboxes. Each tasks has maximum number of applying. Once people apply for that task reaching the limit then checkbox of that task is disabled.
    It is like selling a product, once the product is sold out then it is out of stock (disabled in our case)

    Posted 11 years ago on Monday June 4, 2012 | Permalink
  4. David Peralty

    There currently isn't a way to limit the number of entries based on a form field. You can limit the number of entries in a form, but not based on a check box.

    To do so, would require customization beyond what we could supply on this forum. You'll want to create a Job Board post for such a thing.

    Someone would have to create a gform_pre_render function that counted the number of submissions on the form equal to the values you are limiting and remove the values if they've already went past some pre-determined number.

    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    A competent PHP developer should be able to do this for you.

    Posted 11 years ago on Monday June 4, 2012 | Permalink
  5. Can you pint it out for me, what is best area should look at. I can write PHP code. Hooks and simple SQL query and JQuery is OK. Is there any trick by using product and Quantities fiels.

    Posted 11 years ago on Monday June 4, 2012 | Permalink
  6. David Peralty

    Gravity Forms doesn't have an inventory management system as of yet, so counting down inventory using product/quantities doesn't exist. The hook I sent you in my previous message would be a start. You would want to use the hook I gave you before, and look for information on our RGFormsModel::get_lead_count($form_id, "");

    Posted 11 years ago on Monday June 4, 2012 | Permalink