I am running a validation script on lostfocus of a textfield, this works fine, however, if the user manually selects another field (i.e.the other field getsfocus) the validation script runs, if the field does not pass the validation it is set the focus again but THEN the selected other field still gets the focus????
E.g. what is currently happening:
user selects txtValidateMe
user enters value in txtValidateMe
user selects txtOtherField
txtValidateMe.lostFocus validation script runs
txtValidateMe fails validation
txtValidateMe gets focus
txtOtherField gets focus
How do i stop txtOtherField getting focus once txtValidateMe has failed validation??????
Ta
E.g. what is currently happening:
user selects txtValidateMe
user enters value in txtValidateMe
user selects txtOtherField
txtValidateMe.lostFocus validation script runs
txtValidateMe fails validation
txtValidateMe gets focus
txtOtherField gets focus
How do i stop txtOtherField getting focus once txtValidateMe has failed validation??????
Ta