-
flaminiabagnardiDomanda del 29 ottobre 2024 alle ore 07:44
Buongiorno, sul mio modulo di app registrazione eventi, manca il widget ACQUISTO BIGLIETTI in modo che ci sia un countdown dei posti rimanenti.
Come posso fare per mettere un countdown?
Grazie.
Flaminia Bagnardi
-
Paolo Jotform SupportRisposta del 29 ottobre 2024 alle ore 10:48
Hi Flaminia,
Thanks for reaching out to Jotform Support. Unfortunately, our Italian support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Italian, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.
As for your question, I checked the last form that you accessed, I was able to see that you were able to correctly set the remaining slots on the options. For you to be able to set a price on each selection, you need to create 4 Ticket Purchases widget and separate each selection so that we can assign a value for each using conditional logic. From there, using a Form calculation widget should get the total amount. Let me show you how:
Adding three more Ticket Purchases widget.
- In Form Builder, click on the Add Form Element menu on the left side of the page.
- Under the Widget tab, scroll down to Ticket Purchases, and drag and drop three Ticket Purchases widget to your form.
- Separate each selection and place it on each widget that you added. Check the Sample form for a better view.
Adding four Short Text Fields and a Form Calculation Widget.
- In Form Builder, click on the Add Form Element menu on the left side of the page.
- Under the Basic tab, scroll down to Short Text, and drag and drop four Short Text elements to your form. This will be the containers of the mount of each selection.
- Under the Widget Tab, scroll down to Form Calculation and drag and drop the Form Calculation Widget to your form. This will compute the total amount of the 4 selection.
Setting up the condition to add the price of each selection.
- In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
- Click on Conditions in the menu on the left side of the page.
- Then, click on the Add Condition and select the Update/ Calculate Field condition.
- Configure the settings based on the screenshot below
Sample condition settings.
Setting the formula for the Form Calculation Widget.
- While in Form Builder, click on the Form Calculation widget and click on the Wand Icon to open Widget Settings.
- In the Formula box, click on Add Field and add the 4 short text fields and and a plus sign between the fields. Make sure to Save.
Lastly, now that you have the total amount. You need to add a payment processor of your choice. I used Stripe on my sample form.
1. In Form Builder, click on Add Form Element on the top-left side of the page, and then click on the Payments tab.
2. Under the Payments tab, click on Stripe to add it to your form.
3. In the menu on the right side of the page, click on Connect to connect your Stripe account (if you want to do a test, choose Test Mode in the Mode option).
4. After connecting to your Stripe account, in the popup window that comes up, scroll down and click on Continue in the bottom-right corner.
That's it. Now your form is integrated with Stripe, and you can start collecting payments. You can also check out our guides about How to Integrate Stripe With Jotform and How to Enable Payment Authorization for more detailed information. Note that you need to make sure that you choose User Defined Amount as the payment type and choose the Form calculation Widget as your output.
You can check and review the Sample form that I created based from your form. You can clone it so that it can be included as one of your forms.
Let us know if there’s anything else we can help you with.