itKiwi
Junior Member
Posts: 2
Registered: 3/17/2007
Location: Milan, Italy
Member Is Offline
|
| posted on 3/17/2007 at 08:34 PM |
|
|
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
|
|
|
tigra
Administrator
Posts: 1976
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 3/18/2007 at 07:51 PM |
|
|
'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'},
|
|
|
itKiwi
Junior Member
Posts: 2
Registered: 3/17/2007
Location: Milan, Italy
Member Is Offline
|
| posted on 3/19/2007 at 08:33 PM |
|
|
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.
|
|
|
|