**BloomingArtisan**If I'm setting up an event with limited quantity of space available, how do I set that up and ensure it stops selling tickets for that day?

- JotForm Support
**BDAVID**You can use the ticket purchase widget: https://widgets.jotform.com/widget/ticket_purchases

Where you will need to create conditions to calculate the total in a text box field: https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Calculation-into-a-Field-Using-Conditional-Logic

And if you want to pass the total to a payment field, here is how: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

Let us know if you need more help, we will be glad to assist you.