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
How do I know where $folder is referring to?<br><br>Post edited by: abasel, at: 2008/03/04 20:51
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
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".
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".
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?
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?
Hi abasel,
'validate' and 'required' are different. If you want 'email' required you must put it in the 'required' box too.
Bob
'validate' and 'required' are different. If you want 'email' required you must put it in the 'required' box too.
Bob
This topic is locked and no more replies can be posted.