Hi,
I use Chronoform 3.1 RC5.5 and I have a problem to use the form javascript. When I submit my form there is a blank page anything else (http://www.ah-fitness.fr/index.php?option=com_content&view=article&id=130&Itemid=118). It should appaer a popup with the response.
Please could you help me to understand where is the problem.
Below here is the code form.
Many thanks.
Brgds.
Eliane.
My form HTML is :
My form javascript is :
My form attachment tag is :
onSubmit=RechercheForfait(VerifForm)
I use Chronoform 3.1 RC5.5 and I have a problem to use the form javascript. When I submit my form there is a blank page anything else (http://www.ah-fitness.fr/index.php?option=com_content&view=article&id=130&Itemid=118). It should appaer a popup with the response.
Please could you help me to understand where is the problem.
Below here is the code form.
Many thanks.
Brgds.
Eliane.
My form HTML is :
<p align="center"><font size="4"><strong>Quelle(s) activité(s)
aimeriez-vous pratiquer ? </strong></font></p>
<ul type="disc">
<li><p align="center"><font size="3"><strong>Cours type
CARDIO :</strong> T.B.C. </font><input
type="checkbox" name="CARDIO" value="1"> HILO <input
type="checkbox" name="CARDIO" value="2"> STEP <input
type="checkbox" name="CARDIO" value="3"> </p>
</li>
</ul>
<ul type="disc">
<li><p align="center"><font size="3"><strong>Cours de
type GYM : </strong></font>GYM <input
type="checkbox" name="GYM" value="10"> GYM POWER <input
type="checkbox" name="GYM" value="11"> ABDO / FESSIER
<input type="checkbox" name="GYM" value="12"> PILATES
<input type="checkbox" name="GYM" value="13">
STRETCHING <input type="checkbox" name="GYM"
value="14"></p>
</li>
</ul>
<p align="center"> </p>
<hr>
<p align="center"><font size="4"><strong>A quel rythme
voulez-vous pratiquer votre Fitness : </strong></font></p>
<p align="center">plusieurs jours par semaine<input
type="radio" checked name="Rythme" value="1"> Une seule
journée et toujours la même <input type="radio"
name="Rythme" value="2"> Une seule journée et rarement la
même <input type="radio" name="Rythme" value="3"></p>
<p align="left"> </p>
<p align="center"><input type="submit"
name="demander le forfait adapté"
value="demander le forfait adapté"
</p>
My form javascript is :
f=document.ChronoContact_Choixdufortait;
function RechercheForfait(VerifForm) {
message1 = "Veuillez saisir au moins une activité";
message2 = "Forfait GYM";
message3 = "Forfait LIBERTE";
message4 = "Forfait JOURNEE - veuillez choisir votre soirée en fonction de votre agenda";
message5 = "Forfait INTEGRAL";
message6 = "Forfait ADOS";
message7 = "test message défaut";
<!--aucune saisie ANOMALIE -->
if (VerifForm.CARDIO.value == "")
and (VerifForm.GYM.value == "")
VerifForm.CARDIO.focus();
alert(message1);
return (false);
<!-- gestion des réponses et choix du résultat de la demande -->
switch (Rythme) {
case 1 : if (VerifForm.CARDIO.value == "") {
VerifForm.CARDIO.focus();
alert(message2);
return (true);
}else{ alert(message5);
} ; return (true);
case 2 : if (VerifForm.CARDIO.value == "") {
VerifForm.CARDIO.focus();
alert(message2);
return (true);
}else{ alert(message4);
} ; return (true);
case 3 : if (VerifForm.CARDIO.value == "") {
VerifForm.CARDIO.focus();
alert(message2);
return (true);
}else{ alert(message3);
} ; return (true);
default: alert(message7);
return (true);
} }
My form attachment tag is :
onSubmit=RechercheForfait(VerifForm)