The forms that I insert into content via the mambot don't validate correctly.
I successfully made a form. I then installed the mambot so that I could insert the form in content. The mambot form worked but did not validate the entries. I compared the regular form page with the mambot form. I discovered that the regular form page had "class="required" specified for every field that it was supposed to validate. However the mambot generated form only had "class="required" for the first input field. This is very strange.
I successfully made a form. I then installed the mambot so that I could insert the form in content. The mambot form worked but did not validate the entries. I compared the regular form page with the mambot form. I discovered that the regular form page had "class="required" specified for every field that it was supposed to validate. However the mambot generated form only had "class="required" for the first input field. This is very strange.
Update!
I found a discrepancy between the validation syntax in the component and the mambot. I fixed my problem by altering chronocontact.php in the mambot. I am attaching a replacement file for /mambots/content/chronocontact.php
[attachment=0]chronocontact.txt[/attachment]
I found a discrepancy between the validation syntax in the component and the mambot. I fixed my problem by altering chronocontact.php in the mambot. I am attaching a replacement file for /mambots/content/chronocontact.php
[attachment=0]chronocontact.txt[/attachment]
Hi chronouser55,
which Chronoforms component version/mambot version/Joomla version do you have ?
Max
which Chronoforms component version/mambot version/Joomla version do you have ?
Max
Hi Bob, me again!!
Ive created a form in chronoforms and tested to ensure the validation works. I then add this form to an article with the {chronocontact}loans{/chronocontact} and hey presto, no more validation!!
why why why?
Thanks
Ive created a form in chronoforms and tested to ensure the validation works. I then add this form to an article with the {chronocontact}loans{/chronocontact} and hey presto, no more validation!!
why why why?
Thanks
Hi Alan,
The page you linked to the form tag is
The form shows a JavaScript error
Bob
The page you linked to the form tag is
<form method="post" action="http://www.fcafinance.co.uk/finance-and-loans/templates/fca/scripts/loans_script.php">
This has no id in it so the validation code can't find the form fields. It's also unlike any form tag that ChronoForms generates !! On the basic form the tag is<form action="http://www.fcafinance.co.uk/finance-and-loans/index.php?option=com_chronocontact&task=send&chronoformname=loans" method="post" id="ChronoContact_loans" name="ChronoContact_loans">
The form shows a JavaScript error
$("ChronoContact_loans") is null
[Break on this error] $('ChronoContact_loans').getInputByName2(field).addClass('required');
Bob
This topic is locked and no more replies can be posted.