Limit tickets available | Community
Skip to main content
Answered

Limit tickets available


Hello,

I’m wondering if there’s still no way to limit the number of seats available when selling tickets through Typeform?

I know I can close the form after a certain number of responses, but most people will be buying more than 1 ticket. That means that unless I monitor the form very closely (which is impossible,) I could easily oversell the event.

Is there no way around this? Seems like basic functionality if you’re selling tickets.

Best answer by Harsh

Hi @MerryBright,

To completely automate this whole process you would need to develop a script (running on the cloud using AWS etc using Python, PHP etc) so that Typeform can automatically call your script whenever your form is submitted via a Typeform webhook.  

 

Your script can then keep track on the number of tickets sold (which can be found by parsing out the form).

 

Once the total number of tickets sold is equal to the total number of tickets available, you can programmatically make the Typeform private via the Typeform API by setting the "is_public" field of your form to false

i.e users would no longer be able to access the Typeform and as a result can not purchase more tickets

 

FYI You can either hard code the  total number of tickets in your script itself or have it stored in an external database.

View original

2 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 14884 replies
  • June 9, 2023

Hi @MerryBright Thanks for stopping by the community! I’m afraid we don’t have a ticket selling feature, so closing the form would be your best bet. 

This post below also has some workarounds that might help: 

 


Forum|alt.badge.img+4
  • Socializer
  • 113 replies
  • Answer
  • June 12, 2023

Hi @MerryBright,

To completely automate this whole process you would need to develop a script (running on the cloud using AWS etc using Python, PHP etc) so that Typeform can automatically call your script whenever your form is submitted via a Typeform webhook.  

 

Your script can then keep track on the number of tickets sold (which can be found by parsing out the form).

 

Once the total number of tickets sold is equal to the total number of tickets available, you can programmatically make the Typeform private via the Typeform API by setting the "is_public" field of your form to false

i.e users would no longer be able to access the Typeform and as a result can not purchase more tickets

 

FYI You can either hard code the  total number of tickets in your script itself or have it stored in an external database.


Reply