LayoutGrid Validation in Text Area

Issues related to forms.
Post Reply
VEDRAN
 
 
Posts: 86
Joined: Tue Feb 09, 2021 9:54 am
Contact:

LayoutGrid Validation in Text Area

Post by VEDRAN »

page1 in my DEMO.
I have a LayoutGrid1 which is a form.
I have a Layoutgrid2 which is inside layoutgrid1 and a SUBMIT button in it.
I have a Layoutgrid3 which is inside layoutgrid2 and a Text Area in it.
Text Area has Max. Lenght: 30 and inside Validate: Data Required - ticked, Min: 1 Max: 30.
If you click SUBMIT button, it will try to send data immidietaly, without checking if Validation and data lenght is ok.

page2 in my DEMO.
But, if I put the Layoutgrid3 inside Layoutgrid1 which is acualy a Form, it WILL do the check for data lenhght etc.

DEMO: https://anonfiles.com/NcKaifm0z5/layout ... lenght_wbs

Am I doing something wrong or?
Thanks
User avatar
Pablo
 
Posts: 23241
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: LayoutGrid Validation in Text Area

Post by Pablo »

The element with validation should be a direct child element of the form (not of a nested grid) otherwise the input cannot be validated.
User avatar
wwonderfull
 
 
Posts: 1562
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: LayoutGrid Validation in Text Area

Post by wwonderfull »

Are you using bootstrap validation html or something else? If bootstrap then I think there should not be much problem. These kind of problems occurred for many reasons as I had them and got to learn from the mistakes. If you need help you can submit a demo project just with the form. Maybe we can help you out.
Post Reply