Form validation

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
barsyr
 
 
Posts: 5
Joined: Mon Apr 07, 2025 8:36 am

Form validation

Post by barsyr »

Hello,

I have a question about form-validation.
I've set a layout-grid to act as a 'form' (properties of layoutgrid > form > General > enable form').
In the settings of enabled form, field action is empty.
I've added an event 'onsubmit' in events of the lay-outgrid: javascript: this.action=Create_login();return true;
I have added validation (bootstrap) on all the fields.
So I was expecting, if I press the submit-button, first the form validation happens, and if failure, the 'onsubmit' event would not happen.
Like mentioned in https://wysiwygwebbuilder.com/forum/vie ... hp?t=98736
The validation happens, but also the script Create-login() is executed.
What am i doing wrong here ?

Regards
Bart
User avatar
Pablo
 
Posts: 23564
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form validation

Post by Pablo »

Bootstrap validation is not executed via the onsubmit event attribute event. It's a separate script, so it does not take any custom event handling into account.
barsyr
 
 
Posts: 5
Joined: Mon Apr 07, 2025 8:36 am

Re: Form validation

Post by barsyr »

Ok, thanks for answering.
So do I understand correct that I need another validation then Bootstrap ?
Or how can this be achieved with WWB ?

Regards, Bart.
User avatar
Pablo
 
Posts: 23564
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form validation

Post by Pablo »

For the built-in scripts it's impossible to know if you implement custom code or how it affects the behavior of the page.
So, if you add custom code, then you will need to implement any workarounds yourself.
barsyr
 
 
Posts: 5
Joined: Mon Apr 07, 2025 8:36 am

Re: Form validation

Post by barsyr »

Hi,
Thanks for the response. It make sense. I'll get into it.
Regards Bart
Post Reply