form error page

Issues related to forms.
Post Reply
va3ts
 
 
Posts: 57
Joined: Sun Oct 20, 2013 11:51 pm

form error page

Post 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
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: form error page

Post 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
va3ts
 
 
Posts: 57
Joined: Sun Oct 20, 2013 11:51 pm

Re: form error page

Post by va3ts »

I think I have this et up ok, look for the mailus.php page
https://gbarc.ca/demo.wbs
va3ts
 
 
Posts: 57
Joined: Sun Oct 20, 2013 11:51 pm

Re: form error page

Post by va3ts »

I should add, that the success page displays fine, it's just the error page
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: form error page

Post by Pablo »

The error page of the captcha is set to a non-existing page.
va3ts
 
 
Posts: 57
Joined: Sun Oct 20, 2013 11:51 pm

Re: form error page

Post 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
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: form error page

Post 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.
va3ts
 
 
Posts: 57
Joined: Sun Oct 20, 2013 11:51 pm

Re: form error page

Post 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.
va3ts
 
 
Posts: 57
Joined: Sun Oct 20, 2013 11:51 pm

Re: form error page

Post by va3ts »

maybe I found it, I had selected "enable real time validation with ajax", when I unselected this, the error page appears
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: form error page

Post by Pablo »

Then maybe you did not you did not publishs all files?
'Real-time validation' generates extra files that need to be published.
va3ts
 
 
Posts: 57
Joined: Sun Oct 20, 2013 11:51 pm

Re: form error page

Post 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
Paul
 
 
Posts: 126
Joined: Thu Feb 07, 2013 3:13 am

Re: form error page

Post 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
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: form error page

Post by Pablo »

In WB16, you can use events to validate recaptcha result. But re-captcha only sends an event when the result is ok.
Paul
 
 
Posts: 126
Joined: Thu Feb 07, 2013 3:13 am

Re: form error page

Post by Paul »

If I use the "default" type captchat, and I configure the "validate" tab, nothing happens when I test my form .....
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: form error page

Post by Pablo »

Did you enable 'Enable real-time validation through AJAX'?
Paul
 
 
Posts: 126
Joined: Thu Feb 07, 2013 3:13 am

Re: form error page

Post 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
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: form error page

Post 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.
wwonderfull
 
 
Posts: 1440
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: form error page

Post 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.
wwonderfull
 
 
Posts: 1440
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: form error page

Post 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.
Post Reply