Form submits with required fields empty

zaivan 02 Aug, 2015
Hello!
I have Chronoforms5 installed on my Joomla 3.4 site.

When I try to submit a for, leaving a required field empty, the required field is at first highlighted but then tha page reloads as if the form has been submitted and I get a "successfully sent" message.

An example can be found here: http://beta.ivarenok.ru/podarochnie-sertifikati.html (form is at the bottom of the page).

What could the problem be?

Thanks a lot in advance!
GreyHead 02 Aug, 2015
Hi zaivan,

I suspect that the form is not submitting at all because of the SEF URLs. Please see this FAQ

Bob

PS also your form is inside <p></p> tags and that may cause problems with IE as it is technically invalid HTML.
zaivan 02 Aug, 2015
Thanks for a prompt reply, GreyHead!

The form does submit - I am getting an e-mail with emply fields.
I've cleared the <p></p> tags - but that didn't help.

Any other ideas what I could do?
I saw a similar post somwhere and the reason there was some sort of JS conflict. Could that be my case?
GreyHead 03 Aug, 2015
Hi zaivan,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
zaivan 03 Aug, 2015
Hi, Bob!
Here's what the debugger says:
Data Array
Array
(
    [chronoform] => sertifikati
    [event] => submit
    [sert_name] => 
    [sert_phone] => 
    [sert_type] => 
    [sert_comment] => 
    [sert_submit] => Отправить
    [sertifikati] => 
    [ip_address] => 46.39.55.90
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
    [7] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:dance@ivara.ru
                    [2] => Subject:Заявка на подарочный сертификат
                    [3] => From name:no-reply
                    [4] => From email:dance@ivara.ru
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<p>
Имя: <br />
Телефон: <br />
Сертификат: <br />
Комментарий: <br />
</p><br /><br />IP: 46.39.55.90
                )

        )

) 
GreyHead 03 Aug, 2015
Hi zaivan,

There is a JavaScript error that shows up very quickly when the form submits - I had to take a video recording to read it. Uncaught reference error: is_site_blin is not defined : gtooltip.js:308

I've looked at the code and can't see exactly what is being checked. It might be a bug - you can try changing line 308 of /libraries/cegcore/assets/gplugins/gtooltip/gtooltip.js from
if(is_site_blin==undefined)
to
if( typeof is_site_blin == 'undefined' )

If that doesn't work please ask Max, who is the developer, using the Contact Us menu above and linking to this thread.

Bob
zaivan 04 Aug, 2015
Many thanks, Bob!
It worked!
This topic is locked and no more replies can be posted.