Simple Validation

abasel 05 Mar, 2008
Using the suggestion/tutorial for applying field validation, I've downloaded the relevant script to a folder called js. Where must I put this folder.. in my template directory or in the room of the Joomla structure?

The tutorial makes reference to

<?php
global $mosConfig_live_site;
$folder = $mosConfig_live_site.'/components/com_chronocontact';
echo "<script src='$folder/prototype.js' type='text/javascript'></script><br />";
echo "<script src='$folder/validation.js' type='text/javascript'></script>";
?>

How do I know where $folder is referring to?<br><br>Post edited by: abasel, at: 2008/03/04 20:51
GreyHead 05 Mar, 2008
Hi abasel,

The tutorial is old and you can now do this validation in ChronoForms using the Validation tab.

Bob

PS BTW the tutorial says "upload the files to the components/com_chronocontact folder".
abasel 05 Mar, 2008
K... thanks for that

I'm trying a simple form:

Name: <input name="name" value="" type="text"><br />
E-mail: <input name="email" value="" type="text"><br />
<input name="submit" value="Submit" type="submit">


In validation, I have
1 - required (not blank) => name
7- validate-email (a valid email address) => email

The form forces the name but not the email address.... why is this?
abasel 05 Mar, 2008
Ignore.. seems to be working. I must have done something silly :-)
GreyHead 05 Mar, 2008
Hi abasel,

'validate' and 'required' are different. If you want 'email' required you must put it in the 'required' box too.

Bob
abasel 06 Mar, 2008
Excellent... thanks for that... what a great component.
This topic is locked and no more replies can be posted.