Form validation
Posted: Tue Jun 03, 2025 9:49 am
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
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