I'm on Ebase 5.1.1.
I've just noticed that the field type validation seems to be broken. Even though I've set a field type to Integer, Ebase no longer displays a pop up warning if you enter a value that is of the wrong type like characters. The same thing happens when I enter a non-date into a date field.
I was able to reproduce this problem by creating a new form, and without making any changes to it whatsoever other than adding a single field and setting its type to integer. Entering a non-integer value doesn't seem to matter to Ebase where it used it pop the message "Field 'abc' is not a valid integer". I just noticed that forms that were created before 5.1.1 still correctly validate the fields but forms created in 5.1.1 don't do the validation.
Is this a bug in 5.1.1 ?
field type validation broken
Moderators: Jon, Steve, Ian, Dave
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
This works fine for me with a V5.1.1 system and with all browsers so I'm not sure what your problem is. I guess you have checked that you're not suppressing popups within the browser. Historically, these problems are usually caused by bad levels of Javascript files, caching etc, but then you notice that other things don't work as well
0 x
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
Jon,
I just created another brand new form and did not attach any JavaScript scripts associated with it and the only JavaScript files attached to the form were the default JQUERY and JQUERYUI scripts under Form Properties->Web Resources.
I made sure that the project does not have any shared projects associated with it and removed the 2 JQUERY scripts. I added a field called TEST and set its type to Integer and deployed it. Entering a non-integer character and tabbing over does not trigger the error "Field 'TEST' is not a valid integer" as it should
I just created another brand new form and did not attach any JavaScript scripts associated with it and the only JavaScript files attached to the form were the default JQUERY and JQUERYUI scripts under Form Properties->Web Resources.
I made sure that the project does not have any shared projects associated with it and removed the 2 JQUERY scripts. I added a field called TEST and set its type to Integer and deployed it. Entering a non-integer character and tabbing over does not trigger the error "Field 'TEST' is not a valid integer" as it should
0 x
-
- Ebase User
- Posts: 94
- Joined: Fri Sep 14, 2007 12:18 pm
- Location: The Netherlands
- Contact:
Re: field type validation broken
Is the field Immediate Validation set? Ebase errors are only triggered by an immediate validation being triggered. If you want to test at tab it would be better to use a jQuery event on the lose focus of the field to do your own check and display an error message.
0 x
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
Who is online
Users browsing this forum: No registered users and 1 guest