Hi,
I currently call a validaton script as described in the Tutorials with the following line onSubmit="return checkForm(this)"
and a snipet of the code...
function checkForm(form)
{
if(form.Surname.value == "") {
alert("Please include your Surname !");
return false;
}
return true;
}
All works perfectly !
I would also like to include a script to insert the current date into the HTML email template I am using. The script is simple but I'm a little unsure of how to implement it using chronoforms.
<script type="text/javascript">
document.write(Date())
</script>
I've tried including the script in the Email Template section but no luck.
thanks.
I currently call a validaton script as described in the Tutorials with the following line onSubmit="return checkForm(this)"
and a snipet of the code...
function checkForm(form)
{
if(form.Surname.value == "") {
alert("Please include your Surname !");
return false;
}
return true;
}
All works perfectly !
I would also like to include a script to insert the current date into the HTML email template I am using. The script is simple but I'm a little unsure of how to implement it using chronoforms.
<script type="text/javascript">
document.write(Date())
</script>
I've tried including the script in the Email Template section but no luck.
thanks.