Board Logo

error - not finding title in form
nodster - 6/14/2007 at 10:45 AM

i am using the following call parameters on my form:

'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'},
'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:

Can not find form field 'title' in the form 'phoenixForm'

but i dont have a input field 'title' anywhere on my form?


tigra - 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 - 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 - 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 - 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!!

Back to forum: