Page 2 of 2

Re: form radio alert working but not correctly

Posted: Tue May 08, 2012 6:29 pm
by jonnyfortis
thanks for the code. im getting there but because it is a large form it has check boxes aswell. but these dont have to be filled in but what i think is happening is the return validateForm() is asking for an entry to the tick boxes and radio buttons further down the form so halfway down the form the javascript alerts dont work anymore and it just give the error

Notice: Undefined index: GuSex in /usr/users1/jonfort/public_html/hostproperty/beta/property-application.php on line 92

Notice: Undefined index: GuMarital in /usr/users1/jonfort/public_html/hostproperty/beta/property-application.php on line 93

Notice: Undefined index: GuBankDebit in /usr/users1/jonfort/public_html/hostproperty/beta/property-application.php on line 104

if something is not filled in....

i have included a link the full form and maybe you could suggest a more efficent way of doing this?

http://www.hoststudent.co.uk/beta/prope ... cation.php

Re: form radio alert working but not correctly

Posted: Thu May 10, 2012 12:53 am
by Gopesh
Hi,I cannot follow this large form..what i understand from ur webpage is try to add focus or red marking on the error fields by which users can easily understand on which item the error occurs

Re: form radio alert working but not correctly

Posted: Thu May 10, 2012 2:55 am
by jonnyfortis
ok thanks