Hi,
I upgrade a plugin GetStatInSurvey to make a SUM on a numeric field.
With Javascript, i can put the sum in a masked fiel to have the sum data in a field.
If this SUM + a numeric field value is over a defined max value, i want to deactivate the submit button.
How can i deactivate the submit button to not send the answers.
This development is to imitate the quota gestion, but not whith 1 by 1 answer. It's for a family or groupe inscription to a activity.
Exemple :
A 12 quota activity. First answer, 1 family with 5 people. Next answer, a family with 3 people. So, when a third family with 5 people want subscribe, i made a SUM, that give me 8 + 5 people, that is over 12 quota. And, in this case, i want deactivate Submit buton.
I hope it's clear !
Thanks