Hi all,
To set my problem into context, this is the order of events:
-Choose an option, makes field visible
-Fill field in with data
-Press button which:
-Checks which fields should be mandatory, and makes them so
-Runs execValidate()
-Hides parent subform and makes next parent subform visible
-Go back to previous parent subform
-Delete data from field
-Press button which:
-Checks which fields should be mandatory, and makes them so
-Runs execValidate()
-Doesn't change subform
However, the second time around it is running the validation script twice and displaying my message "The field XXX is mandatory and has not been completed" twice.
Any ideas why this is hapenning?
Many thanks,
Tom