-
agoraacademyDomanda del 2 marzo 2025 alle ore 04:47
Buongiorno,
vorrei fare qualcosa di particolare e non so se quello che voglio fare è possibile.
Sto parlando del form https://eu.jotform.com/build/230681234923353Nel form, come potete vedere c'è un campo data.
A seconda poi della data selezionata compariranno i campi Pranzo e Cena ad esempio.I campi Pranzo e Cena sono campi a scelta multipla.
Io vorrei poter contare a seconda delle selezioni fatte i campi Numero di adulti e Numero di bambini.Ad esempio giorno selezionato 1 marzo 2025, cena opzione 20:00, numero di adulti 5, numero di bambini 5. Vorrei memorizzare in una variabile interna del form 10 (5+5)
Poi arriva una nuova compilazione del form giorno 1 marzo 2025, cena sempre opzione 20:00, numero di adulti 2, numero bambini 3. La variabile interna per quella data e ora passerà da 10 a 10+2+3=15.
Quando quella variabile interna arriva a 50 ad esempio, l'opzione 20:00 per la cena del 1 marzo non dovrà più risultare disponibile.
E' possibile fare una cosa simile o esiste già qualche widget che lo fa in automatico?
In pratica è una sorta di gestione scorta ma non sulla quantità dei prodotti ma sui posti disponibili prenotabili. Ho visto che esiste qualcosa di simile ma il conteggio viene fatto sul numero di prenotazioni, però capite che se ho 50 posti posso ricevere 50 prenotazioni da 1 posto oppure 2 prenotazioni da 25 posti.
Grazie mille per l'aiuto e/o i suggerimenti che mi potrete dare.Saluti
-
Eduardo Jotform SupportRisposta del 2 marzo 2025 alle ore 07:04
Hi agoraacademy,
Thanks for reaching out to Jotform Support. Our Italian Support agents are busy helping other Jotform users right now, so 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, it might take a while until they're available again.
Now, coming back to your question, I'd suggest that you use our Form Calculation widget to make the sum of the number fields Number of Adults and Number of Children. After that, use the Update/Calculate Field condition to dynamically store this value in a hidden field that keeps track of the total count per date and time slot. You might want to check out this guide about How to Perform Calculations Using a Widget and How to Insert Text or Calculation Into a Field Conditionally.
Let us know if there’s anything else we can help you with.
La tua Risposta
Something Went Wrong
An error occurred while generating the AI response. Please try again!