Forums

Form malfunction when Joomla Cache is on

omidhz 12 Jun, 2016
I have a form with few fields that collects some numbers from user. On submit, it will use a custom php code to do sam mathematical calculation, then echo the result and also show the form again. The result echo is also embedded in the custom php event. See the screenshot:
[attachment=0]Capture.JPG[/attachment]

The issue is that if I turn on the Cache in Joomla, after I submit the form, the result doesn't show and the form appears without users input. If I turn off the cache, every thing works as it should (the results of the calculation is displayed and form is also displayed with the data that the user entered).

I'm not sure why this is happening and how can I fix this so that I can enable cache on my site.
Any help is much appreciated.
GreyHead 12 Jun, 2016
Hi omidhz,

I'm not clear from the info here why it would submit empty - but you can use validation to prevent that. If caching is on then the form will be served from the page cache and will not include anything that is specific to this user - in particular most of the ChronoForms Captchas will fail.

Bob
This topic is locked and no more replies can be posted.