What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How do I make one thing sold out and not the other?

    Asked by HerreshoffMarineMuseum on June 30, 2016 at 12:35 PM

    The form I have a question about is for selling event tickets for two different days. We are nearing being sold out for one option, but not the other. How can I make one option sold out while keeping the data information and leaving the other option available? 

    Page URL:
    https://form.jotform.com/HerreshoffMarineMuseum/July3rd2016

    Screenshot
    and sold out Make how
  • Profile Image
    JotForm Support

    Answered by david on June 30, 2016 at 01:58 PM

    Though the option cannot be disabled, it can be hidden from the form with CSS.  Depending on which day you would like to hide, the code would be slightly different.  If July 4th is the day filling up, hiding that day can be done with this code:

    http://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes

    #product-name-input_3_1006,#input_3_quantity_1006_0_0, #input_3_quantity_1006_1_0, #input_3_quantity_1006_2_0, #input_3_1006, #input_3_1006_subproducts span.form-sub-label, #input_3_1006_subproducts span.form-product-child-label {
        display : none;
    }

    Here is how the form would look with the code added:

    http://support.jotform.com/form/61815134023950

    On a side note, for new forms, you can actually try using the following widgets that allow for limiting the number of times an option can be selected:

    http://widgets.jotform.com/widget/inventory 

    http://widgets.jotform.com/widget/quantity_gift_registry 

    http://widgets.jotform.com/widget/gift_registry 

    http://widgets.jotform.com/widget/ticket_purchases

    Then calculate the value of the selections:

    http://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    And pass that value to the payment field:

    http://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field

    This setup would allow you to control the number of tickets/products available and disable the option once that limit is reached.