Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Incomplete "username" form field descriptor entry. T attribute is missing
itKiwi
Junior Member

Posts: 2
Registered: 3/17/2007
Location: Milan, Italy
Member Is Offline
posted on 3/17/2007 at 08:34 PM Reply With Quote
Incomplete "username" form field descriptor entry. T attribute is missing


This is the error I get when trying use FV on a simple login form. Username is the first field to validate. The missing attribute looks like a capital T, but is a strange symbol.
Here is my form script:-
<script>
var a_fields = {
'username':{'r':true,'f':'alpha','mn':3},
'password':{'r':true,'f':'alpha','mn':3}
},
o_config = {'to_disable':['login'],'alert':1}

// Validator constructor call
var v = new validator('login', a_fields, o_config)
</script>

What am I doing wrong ?
Thanks
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 3/18/2007 at 07:51 PM Reply With Quote

'l' (lower case L) parameter is missing, it's the user friendly name (label) of the field that validator will use in the error messages.

'username':{'r':true,'f':'alpha','mn':3, 'l': 'User Name'},
View User's Profile View All Posts By User U2U Member
itKiwi
Junior Member

Posts: 2
Registered: 3/17/2007
Location: Milan, Italy
Member Is Offline
posted on 3/19/2007 at 08:33 PM Reply With Quote

Thanks Tigra.
A good example of "RTFM" ;-( ! In mitigation, my field description structure was based on the example from the documentation, which doesn't have the "l" field descriptor in it, and the strange symbol in the error message made me think there was something more profoundly wrong.
Haven't tried it yet, but thanks again.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Free Download Free Download
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004