Page 1 of 1

form error page

Posted: Mon Oct 05, 2020 4:12 am
by va3ts
I created a new form in WB16, all works ok but when I intentionally input an error in the captcha, the form does not go the error page, but instead just display a white screen (firefox). I checked other forms I have, they all seem to do the same thing on an error. The same thing happens even on another domain I maintain.
https://gbarc.ca/netcontrol.php

thanks

Re: form error page

Posted: Mon Oct 05, 2020 6:07 am
by Pablo
To be able to help you with this, I need to see all settings.
Do you have a demo project?

Note that I do not need the complete project, only a demo with the relevant pages.

Related FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Re: form error page

Posted: Mon Oct 05, 2020 1:33 pm
by va3ts
I think I have this et up ok, look for the mailus.php page
https://gbarc.ca/demo.wbs

Re: form error page

Posted: Mon Oct 05, 2020 3:19 pm
by va3ts
I should add, that the success page displays fine, it's just the error page

Re: form error page

Posted: Mon Oct 05, 2020 3:19 pm
by Pablo
The error page of the captcha is set to a non-existing page.

Re: form error page

Posted: Mon Oct 05, 2020 3:31 pm
by va3ts
I can see error.php on the server using filezilla and if I access it directly it appears...

https://gbarc.ca/error.php

Re: form error page

Posted: Mon Oct 05, 2020 3:43 pm
by Pablo
In the properties of the captcha object, the error page is set to non-existing page. It is not set to 'error', at least not in the project you have shared.

Re: form error page

Posted: Mon Oct 05, 2020 3:54 pm
by va3ts
I didn't actually publish the "demo" page, however, on the gbarc.ca domain, I selected the error page from the project listing, the same way I selected the success page.... I can see the page on the web server, it exists when I load it directly and its part of the project drop down screen. As a test I directed the error page tobe the index page and still it just displays a blank white screen.

Re: form error page

Posted: Mon Oct 05, 2020 4:00 pm
by va3ts
maybe I found it, I had selected "enable real time validation with ajax", when I unselected this, the error page appears

Re: form error page

Posted: Mon Oct 05, 2020 5:11 pm
by Pablo
Then maybe you did not you did not publishs all files?
'Real-time validation' generates extra files that need to be published.

Re: form error page

Posted: Mon Oct 05, 2020 5:39 pm
by va3ts
I have always had to do a certain amount of experimentation to get the captcha to work correctly, especially when validation is used, but when things don't work, my first go to is to publish all files. This was working, but its only recently I have had to play with the forms

Re: form error page

Posted: Wed Oct 28, 2020 11:16 pm
by Paul
Hello

Is it possible to have an error message (validation) for recaptcha(ver. 2) instead of having an error page.


thanks for the help

Re: form error page

Posted: Thu Oct 29, 2020 6:58 am
by Pablo
In WB16, you can use events to validate recaptcha result. But re-captcha only sends an event when the result is ok.

Re: form error page

Posted: Fri Oct 30, 2020 12:53 am
by Paul
If I use the "default" type captchat, and I configure the "validate" tab, nothing happens when I test my form .....

Re: form error page

Posted: Fri Oct 30, 2020 6:56 am
by Pablo
Did you enable 'Enable real-time validation through AJAX'?

Re: form error page

Posted: Fri Oct 30, 2020 12:22 pm
by Paul
yes, it has been checked

I found, I added the following code:

The code disables the Ctrl + U key.

<script src = "https://ajax.googleapis.com/ajax/libs/j ... ery.min.js" type = "text / javascript"> </script>
<script type = "text / javascript" language = "javascript"> $ (function () {$ (this) .bind ("contextmenu", function (e) {e.preventDefault ();});}); </script>
<script>
document.onkeydown = function (e) {
if (e.ctrlKey &&
(e.keyCode === 85)) {
return false;
}
};
</script>

Do you have any suggestion to disable Ctrl + U key

thanks for the help

Re: form error page

Posted: Fri Oct 30, 2020 12:54 pm
by Pablo
In most cases jQuery is already added to the page, so you do not have to add it again. it may break the scripts on the page.

Re: form error page

Posted: Fri Oct 30, 2020 1:10 pm
by wwonderfull
I used the validation through AJAX for captcha and it worked fine for me. I used layout grids for this and yes no extra setting just write what the error message and then check on "Enable Realtime validation" and done.

Your website looks outdated from modern perspective so try to use layout grids if you find it useful. It is the trend for modern browsers and future generation web development. A fast responsive website gives the users a better experience and visit your site more and more.

Re: form error page

Posted: Fri Oct 30, 2020 1:14 pm
by wwonderfull
Here is a screen shot of your project working. If you do the right settings it may be the result for you also.
Image

If you need a demo then please request.