Hi,
I have a dynamic dropdown on a form when I select the second dropdown it popolates the third from DB. On all browsers except IE (IE11) when I press refresh , the second dropdown requeries the database again when I select it which is what i need.
In IE it just uses the cached form data, how can I get around this?
The only way it works is changing IE settings to check for new page everytime but thats is not a viable option.
https://www.feisonline.com/login-register/register
Thanks for your help! I have tried your caching page options but it doesnt work https://www.chronoengine.com/faqs/55-cfv4/cfv4-anti-spam/4111-why-does-joomla-cache-stop-my-form-working.html
I have a dynamic dropdown on a form when I select the second dropdown it popolates the third from DB. On all browsers except IE (IE11) when I press refresh , the second dropdown requeries the database again when I select it which is what i need.
In IE it just uses the cached form data, how can I get around this?
The only way it works is changing IE settings to check for new page everytime but thats is not a viable option.
https://www.feisonline.com/login-register/register
Thanks for your help! I have tried your caching page options but it doesnt work https://www.chronoengine.com/faqs/55-cfv4/cfv4-anti-spam/4111-why-does-joomla-cache-stop-my-form-working.html
Hi cymak,
I can't replicate this - or I'm not understanding correctly.
If I view the form in IE11, then select all three drop downs, then click the refresh circular arrow by the URL the form re-loads without any previous data.
Bob
I can't replicate this - or I'm not understanding correctly.
If I view the form in IE11, then select all three drop downs, then click the refresh circular arrow by the URL the form re-loads without any previous data.
Bob
Hi Bob,
The form looks like there is no data but if you select the same options in the dropdown, the dropdown for school is prepopulated from cache.
A test would be to add a new school by selecting it in dropdown, after adding you will se that the new school does not appear
The form looks like there is no data but if you select the same options in the dropdown, the dropdown for school is prepopulated from cache.
A test would be to add a new school by selecting it in dropdown, after adding you will se that the new school does not appear
Hi,
In IE11? Ive tried it on 4 pcs in 4 different locations and users emailing me about that its not updating. in your internet options under browsing history is it set to automatic, that the default setting.
I will go through the steps again
1. Select User Type - i.e Dancer(13+)
2. Select Organization - An Comhdhail
3. Schools dropdown should have 2 schools
4. Select add a new school
5. Add a school called test and submit
Now if you do step 1 - 3 is still only 2 schools when test should be there.
Try adding 2 or 3 schools to test, Thanks for your help
In IE11? Ive tried it on 4 pcs in 4 different locations and users emailing me about that its not updating. in your internet options under browsing history is it set to automatic, that the default setting.
I will go through the steps again
1. Select User Type - i.e Dancer(13+)
2. Select Organization - An Comhdhail
3. Schools dropdown should have 2 schools
4. Select add a new school
5. Add a school called test and submit
Now if you do step 1 - 3 is still only 2 schools when test should be there.
Try adding 2 or 3 schools to test, Thanks for your help
Hi cymak,
Ah - I had no idea that I had to add a new school to see the problem or that the refresh was automatic. I can now see that it is working in Chrome, I'll take a look at IE in the morning and see if I can spot a solution.
Bob
Ah - I had no idea that I had to add a new school to see the problem or that the refresh was automatic. I can now see that it is working in Chrome, I'll take a look at IE in the morning and see if I can spot a solution.
Bob
Ok,Thanks After ruling out all extensions and testing the caching I think its down to stored data in the session that is populating the form(not sure why it only does it in IE) is there an easy way I can clear session data on load or even better is if I can do it from the add a school form after it closes. Thanks
Hi cymak,
Joomla! has a session clear method - see this StackOverFlow answer. Use with care to make sure that you don't delete the whole session.
Are you using the ChronoForms multi-page or Data to Session actions here?
Bob
Joomla! has a session clear method - see this StackOverFlow answer. Use with care to make sure that you don't delete the whole session.
Are you using the ChronoForms multi-page or Data to Session actions here?
Bob
I'm using data to session to pass to the add to school section. Would you mind having a quick look and see if the sessions would solve my issue, just that it would take me a few hours to figure it out when you can see the problem in a few seconds, thanks
Hi cymak,
Please test one of these fixes to see if they do the trick. both from this StackOverFlow page
a) add a Load JavaScript action to the form (or use an existing one) and add this code
b) As a workaround, edit the file /administrator/components/com_chronoforms5/chronoforms/events/set_dynamic_options/set_dynamic_options.php and around line 36 add this line:
Bob
Please test one of these fixes to see if they do the trick. both from this StackOverFlow page
a) add a Load JavaScript action to the form (or use an existing one) and add this code
jQuery.ajaxSetup({ cache: false });
That should prevent any jQuery Ajax call from being cached by adding a random string to make the URL unique.
b) As a workaround, edit the file /administrator/components/com_chronoforms5/chronoforms/events/set_dynamic_options/set_dynamic_options.php and around line 36 add this line:
if(!empty($event['ajax'])){
$return .= "
$.ajax({
'cache': false, // << add this line
'type' : 'GET',
Note: I think that the quotes are needed the example I found has just cache : false
Bob
This topic is locked and no more replies can be posted.