where the date validation set on a form?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

where the date validation set on a form?

#1

Postby xren » Fri Aug 05, 2016 7:23 pm

Hi,

I have a date field on an inherited form. When I put wrong date format and hit enter key, an alert window pop up show:

Filed xxx is not a valid date - should be in format xxxx.

I could not figure out where this is set even I found the following when I view source code from browser:

ebmn.addInputType(new eb.InputType('DATE','Field \'&&1\' is not a valid date - should be in format &&3.','yyyy-MM-dd'));

I know enter button will trigger the first button of submit.

But still did not found where the validation set.

Thanks for help.

Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon Aug 08, 2016 8:03 am

Validation of date and numeric fields is always enabled, you don't have to do anything.
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Mon Aug 08, 2016 5:33 pm

Can this be turned off?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Tue Aug 09, 2016 7:33 am

No you can't turn it off. If you want a different format, you should use a character field instead of a date field. There is no automatic validation of character fields.
0 x


Who is online

Users browsing this forum: No registered users and 23 guests