form radio alert working but not correctly

JavaScript and client side scripting.

Moderator: General Moderators

jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: form radio alert working but not correctly

Post 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
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: form radio alert working but not correctly

Post 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
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: form radio alert working but not correctly

Post by jonnyfortis »

ok thanks
Post Reply