Forums

Contact form not reloading after submit

roman_sc 16 Feb, 2018
Hello,

I'm using the basic contact form from the demo section in Joomla embedded in an article as plugin.
After submitting the page reloads and a confirmation message is displayed in a modal. But I can't get the form to reset and reload, the area is just blank.
I alread tried to reset the form with the custom code and Loop Event I found on the forum but it's not working:
<?php
$form->data = array();
?>
The following error is displayed:
Warning: Creating default object from empty value in .../libraries/cegcore2/admin/extensions/chronofc/helpers/parser.php(100) : eval()'d code on line 2

Do you have any advice?
GreyHead 17 Feb, 2018
Hi roman_sc,

$form->data was used in CFv5 but not in CFv6.

Have you tried using AJAX submission? I think that should work as long as you have no file uploads.

Bob
roman_sc 17 Feb, 2018
Thank you GreyHead,

I set AJAX submit to "yes" under load -> display section.

But after submitting I still get a blank page with no form.

Maybe I have to set AJAX submission somewhere else?
GreyHead 18 Feb, 2018
Hi roman_sc ,

A completely blank page is usually a sign of a PHP Error, Please try setting Site Error Reporting temporarily to Maximum and see if you get a more helpful error message.

Bob
Gatsman 08 Mar, 2018
Did you ever solve this i do have the same issue!!!
Just a simple test form but running in modal:
Designer:
-- 1 text field, 1 send button (no field edit)
Setup:
-- Load: Display Section -> AJAX -> Yes
-- Submit: Empty (so there can't be any PHP errors)
Running the form from the admin View

Is there something that i am missing shouldn't the form be ready to load again if it was send with AJAX?
mucchina74 12 Mar, 2018
Sorry, I have a similar issue (even if not the same), for which I open the topic https://www.chronoengine.com/forums/posts/t105229

Where can I check the parameter Load: Display Section -> AJAX -> Yes ?

Thanks a lot in advance!
This topic is locked and no more replies can be posted.