how to disable cache for chronoform

lapo78 19 Oct, 2013
Hi,
i need to disable cache only for chronoform. It's possible?
Thanks
lapo78 20 Oct, 2013
It doesn't work, i don't understand why. In the both pages I have form with custom code in the onLoad and url with option=com_chronoforms.
GreyHead 20 Oct, 2013
Hi Lapo,

???? . . . what exactly doesn't work?

Bob
lapo78 20 Oct, 2013
I have two form, the first passes the data to the second, all by session.
every time that user makes this operation, second form show data of first submitted.
GreyHead 21 Oct, 2013
Hi Lapo78,

Sorry, I still don't know what the problem is :-(

Is the problem that the second form does show the data? Or that it does not?

Bob
lapo78 21 Oct, 2013
The second form show ever data of the first submit because the page is in the cache.
I entered at the begin of the first and the second form this code
<?php
$cache = JFactory::getCache('com_chronoforms');
$cache->clean();
?> 

but it doesn't work.
Each form work with URL that includes 'option=com_chronoforms'.
Thansk again
GreyHead 21 Oct, 2013
Hi lapo78,

I don't think that has anything to do with the cache. It's more likely that the browser is refilling the data (or, if you have saved it to the Joomla! User session then ChronoForms will refill it).

The simplest solution is to make sure that the two forms have different input names.

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