Forums

Validation will not work

mike_o 23 Aug, 2007
Hi

Do you have to use the (Form tag attachment:) if u use the new validation tool? If, what kind of script do I have to use? Can´t get the validation to work.
Max_admin 23 Aug, 2007
Hi Mike,

No, just enable the validation and put field names as stated in the tooltips🙂

ah, if you have a class attribute at your form elements tags then the validation wont work, please remove any class attributes from any elements.

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mike_o 24 Aug, 2007
Hi max
I have done exactly as you recommended but the validation will not work. As you can see I don't use any class attribute. Any ideas?

/mike😟

<table width="400" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="75" align="right" valign="top"><label>Name</label></td>
    <td width="25"</td>
    <td width="300"><input type="text" name="name" id="name" size="30"/></td>
  </tr>
Max_admin 24 Aug, 2007
Can you post a screenshot for your validation tab ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mike_o 24 Aug, 2007
okay, here it is.
GreyHead 24 Aug, 2007
Hi mike,

That looks OK to me.

How does the validation fail? There are a little bug in the present version that might be causing you problems: all validated field automatically become 'required' so your settings will make email a required field.

You can see how Validation should work in the tutorial on the site here (NB this was written before Max embedded the code into v2.3).

Bob
mike_o 24 Aug, 2007
It totally fails. There is no validation alerts at all. I have no input in the form fields an then I just press submit. Then I should have I validation alert, but no. It just sends the form.
GreyHead 24 Aug, 2007
Hi Mike,

That sounds as though it's not finding the JavaScript at all. Is your page on-line? If so, can I see have a look?

Can you check that the two/three? .js files have been properly uploaded when you installed, sometimes there can be ftp problems.

Bob

PS Deleted a couple of repeated posts.
mike_o 24 Aug, 2007
all script is in the folder JS (validation.js, prtotype.js and effects.js) have reinstalled everything again but the same result.<br><br>Post edited by: mike_o, at: 2007/08/24 17:31
GreyHead 24 Aug, 2007
Hi Mike,

Thanks, I looked at the page and, as far as I can see, the code to load those JavaScript files just isn't there.

How are you loading the form - is this using the Mambot? That could be the problem I guess.

Yes it is - look at the stand-alone version here and the validation is working OK.

I think that's one for Max to have a look at. I'd guess that the Mambot doesn't support the validation option yet.

Bob
mike_o 24 Aug, 2007
Thanks Bob I can see that now. To bad...Looking forward to the update on the mambot to support validation.

Have I nice day
GreyHead 24 Aug, 2007
Hi mike,

I just had a quick look at the mambot code and validation isn't supported in the latest version. It's quite a chunk of code so not easy to do a quick hack either.

If you want validation with the mambot then I think it would work if you do it manually. That is, follow the instructions in the tutorial here and make sure that the js files are linked from the page (putting the links in the form html should work).

Bob
This topic is locked and no more replies can be posted.