PDA

View Full Version : Validate Form Problem


urbanrays
02-07-2009, 09:20 AM
Hi

I have created a form and validated it.

The trouble is that when clicking from the name to the company field it pops a window up saying all the other fields are required, it does not do this when clicking from company to email etc

This is the validation code
onblur="MM_validateForm('name','','R','company','','R','te lephone','','RisNum','email','','RisEmail','commen ts','','R');return document.MM_returnValue" />

Thanks for any help

Ricky55
02-07-2009, 02:03 PM
That code is wrong remove it.

When applying standard validate code behaviour ensure that you have the submit button selected and then apply it.

the trigger should be onclick not onblur.

Other types of validation, like spry for instance may use other triggers, you may have seen this on some really modern sites, when you tab from field to field the user gets instant feed back but I would just stick to the standard form of validation for now.

urbanrays
02-07-2009, 04:43 PM
cheers mate thats sorted