Validation error

russ 12 Apr, 2008
Hi There,
Having followed the tutorials I set up my first form. (I'm using Joomla 1.5 by the way)

The form works Great! It sends me the email in the correct format and I'm really chuffed with it..

Just a couple of things..

In the validation tab there is a character limit in the "required (not blank)" field. I have quite a large (loan application)form and it meant I had to re-name all my fields to just initials so I could fit them all in.. quite a bit of work because apart from changing the html I also had to re-do the "Elements Titles" tab.

Also the "12- validate-one-required" field doesn't seem to work properly. I have a couple of radio button "families" and when I put the field names in there and test the form the ones that aren't checked come up with the "Please select one of the above options." text even though one of them is checked. I am doing this right aren't I? It is the radio button's Name that goes in there, separated by commas?

Validation error image 1

(I hope it's not just my dumb error, but that's what forums are for right?)
thanks guys,
Russ
Max_admin 12 Apr, 2008
Hi Russ,

You are using the prototype or mootools for validation ? all radios must have the same name, all of them shouldn't have class attribute, all this is fine ?

Let me know!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
russ 12 Apr, 2008
Hi Max,
It is set to Prototype.

Here is the code of one of the buttons:
<input type="radio" name="joi" id="joint" value="joint" />

so yes there are no "class" attributes.

The buttons of the same "family" have the same name. You can tell this is correct because if you enable one it disables the other one and visa versa.

Hope this helps..

Russ
Max_admin 13 Apr, 2008
Hi Russ,

Please try with mootools, you are running Joomla 1.5 and its loading mootools by default so may be some conflict occurs, if this didn't help then please post your form code here or even a part of it and I will give it a try!

Cheers

Max

P.S: search the forums for "one-required" as I think some user posted here recently about a fix for this issue!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
russ 14 Apr, 2008
Hi again Max,
didn't turn out very well changing it to "Mootools" I'm afraid.

When set as "Prototype" the only problem was with the radio buttons as previously explained.

When set as "Mootools" without entering any fields and just pressing submit the "This is a required field." text JUST appeared in the First empty field whereas in "Prototype" ALL the empty fields came up with the text at once.

I entered data into the first field and pressed submit again - This time the "This is a required field." text came into the 2nd field. (I thought it was going to gradually work its way through the empty fields one by one at this stage BUT when I entered data into the 2nd field and pressed submit it sent me to the thank you page and sent the email which duly arrived with lots of empty fields. Email text below:

Loan Required: 54000
Term of Loan: 54
Single or Joint Application:
House Number:
Post Code:
Value of Property:
Mortgage Outstanding:
Mortgage Monthly Payments:
Any other loans on this property total:
How long at This Address:
How Long Current Mortgage Held:
I agree to using my data:
First Name:
Surname:
Age of Applicant:
Daytime Phone Number:
Evening Phone Number:
Mobile Phone Number
Email Address:
Employment Status:
submit Submit My Information

As you can see the fields are all empty apart from the first two.

I have attached my html code in a text file.
Thanks for the help,
Russ
[file name=form_code-55fa68618ef4d592f2120f20f487d731.txt size=9377]http://www.chronoengine.com/components/com_fireboard/uploaded/files/form_code-55fa68618ef4d592f2120f20f487d731.txt[/file]<br><br>Post edited by: russ, at: 2008/04/13 22:44
GreyHead 14 Apr, 2008
Hi Russ,

Validation of that form HTML appears to work OK for me. Please take a Form Backup in the Form Manager and post that here (or email to me at the address in my sig). The Backup includes all the form field so helps diagnose more subtle problems.

Bob
russ 14 Apr, 2008
OK, Bob I emailed you the backup AND the url.

I also tried this fix detailed here: http://www.chronoengine.com/component/option,com_fireboard/Itemid,37/func,view/id,6801/catid,2/limit,6/limitstart,6/

but that didn't work either so I changed it back..

I set it back to prototype for now as at least in that mode the data entry fields work properly even though the radios won't.

I need to disable the validation on the radios until we get a fix for this as this site is live so I'll leave it validating the radios for a couple of hours (or sooner if you let me know you've seen it) but then I'll have to turn it off..
thanks Russ
This topic is locked and no more replies can be posted.