nodster
Junior Member
Posts: 4
Registered: 6/14/2007
Member Is Offline
|
| posted on 6/14/2007 at 10:45 AM |
|
|
error - not finding title in form
i am using the following call parameters on my form:
| Code: | 'name':{'l':'Name','r':true,'f':'alpha','t':'name'},
'address':{'l':'Address','r':true,'t':'address'},
'town':{'l':'Town','r':true,'f':'alpha','t':'town'},
'postcode':{'l':'Post Code','r':true,'f':'unsigned','t':'postcode'},
'evening':{'l':'Evening Telephone Number','r':true,'f':'phone','t':'evening'},
'mobile':{'l':'Mobile Telephone Number','r':true,'f':'phone','t':'mobile'},
'email':{'l':'E-mail','r':true,'f':'email','t':'email'},
'textArea':{'l':'Your Question','r':true,'t':'textArea'}
}
var tfv = new validator('phoenixForm', o_fields, {'alert' : 1});
|
How could i be getting the following error:
| Quote: | |
Can not find form field 'title' in the form 'phoenixForm' |
but i dont have a input field 'title' anywhere on my form?
strange
|
|
|
tigra
Administrator
Posts: 1868
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 6/14/2007 at 03:30 PM |
|
|
I don't see 'title' in your validator config too. It may be one of those "look at one file, edit another" cases. If you can't find it then give
the URL of the form or attach it in the zip package.
|
|
|
nodster
Junior Member
Posts: 4
Registered: 6/14/2007
Member Is Offline
|
| posted on 6/14/2007 at 04:32 PM |
|
|
I found the reason why, it was as you said an error in following the docs and what fields i had.
However now that i have amended it the script no longer works...
Could you look at the attached files and tell me where i've gone wrong.
Many thanks
|
|
|
tigra
Administrator
Posts: 1868
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 6/14/2007 at 07:04 PM |
|
|
you refer to tfv in onsubmit but you initialize variable v
if fix that and the path to validator.js is correct you'll get the descriptive error messages from the validator itself.
|
|
|
nodster
Junior Member
Posts: 4
Registered: 6/14/2007
Member Is Offline
|
| posted on 6/14/2007 at 07:43 PM |
|
|
Excellent thanks very much
Such a simple thing, should've noticed it.
Also thanks for the speedy reply!!
|
|
|
|