Hi,
since my PHP/Evo skills are not really advanced I could need a bit of help with this :-)
I would like to achieve the following scenario:
People send a form via FormLister. After the form is sent, a function changes the value of a certain template variable of the current document. Lets call the TV 'number'.
Every time someone submits the form, the value of the TV 'number' is increased by 1.
The goal is to automatically deactivate the form on the page after the 'number' is equal or higher than 20.
This could be achieved with the if snippet I think. But I need a starting point how to change values of template variables in the actual document with a PHP function.
I am already using a plugin for the form, very close to this one: https://forum.evo.im/d/173-safe-anti-spam-ajax-contactform-with-formlister
Next step would be to use this with multiTV, but that is probably even a bit more tricky.
Would be happy for any hints in the direction how to make a call to change the values of the TVs.