I just noticed that ftLimit is only for certain datatypes and for some reason
it wouldn't work that well on my FarCry install (not sure why, although I
could have a closer look another time)
I did manage to find an alternative which I attach the code below, that add
two new validation options to check for the length and display it in the
same way as other validation failure messages.
required-length: 1 to 255 characters (for required fields)
length: 0 to 255 characters (for non-required fields)
file: /farcry/core/webtop/js/formValidation/validation.js
line: 232 after 'required'
['required-length', 'Length of field must be between 1 and 255
characters.', function(v) {
var len = v.length;
var x = false;
if ( len<255 &&
!Validation.get('IsEmpty').test(v)) { x = true; }
return x;
}],
['length', 'Length of field must be between 1 and 255 characters.',
function(v) {
var len = v.length;
var x = false;
if ( len<255) { x = true; }
return x;
}],
-Phil
--
View this message in context:
http://www.nabble.com/Title-too-long-for-database-tp24033749s621p24054762.html
Sent from the FarCry - Dev mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---