- ArmstrongTennisAcademyAsked on April 12, 2015 at 04:07 AM
Hi Jotform Team:
I have set a form using the "ticket purchase" widget. I used it for the registration of the classes offered. I believe that I have set it up properly to show the number of spaces available (which is what I want). However, what I want also to happen is that when someone clicks on a particular session, the number of spaces available reduces accordingly. Is there a way to do this without redoing the form?
Please advise. Here is the link to my form. https://secure.jotformpro.com/form/50957264499976
Thanking you advance for your help
- ShadaeAnswered on April 12, 2015 at 11:05 AM
The widget will automatically change the amount of spaces that are left whenever your form is submitted and loaded once again.
You would however need to place an API key within the widget to allow for your submission information to be read.
Please view this guide one how to create an API: http://www.jotform.com/help/253-How-to-Create-Jotform-API-Key
I hope this helps, please inform us if you need further assistance.
- ArmstrongTennisAcademyAnswered on April 12, 2015 at 05:18 PM
Unfortunatedly, it still didn't work. Anyone have any suggestions
- JotForm Supportashwin_dAnswered on April 13, 2015 at 01:50 AM
I'm sorry for the trouble caused to you.
When you say that it does not work, do you mean to say that the available count does not decrease?
I did test the "Ticket Purchases" widget in my demo form and it seems to work as expected. The available count did reduce after successful submission. Please check the screenshot below:
When I tested your form, it does not seems to work. I am not sure if you have added the correct API key. I copied one f the API key of your account and added it in the Ticket Purchases widget of your form. That seems to have resolved the issue and the available count of the ticket purchases widget is reduces after submission. Please check the screenshot below:
Do test your form and get back to us if the issue persists.