Steve,
By wrapping the execute in an if statement you can tell if it managed to execute correctly or failed.
if (this.parent.parent.execValidate()) {
this.parent.parent.presence = "hidden";
Question2.presence = "visible";
xfa.host.setFocus("Header.FocusField");
}
Will only move on to the next question if the form addressed(this.parent.parent) has validated correctly.
The problem I am having is that I wanted to use the validate event to check if a field contained a valid entry.
http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0010...This quite clearly says that you can return a false or true:
"Calculations and scripts on the validate event are required to return true or false (expressed in a format appropriate to the scripting language) corresponding to a validation that succeeds or fails, and must not affect the overall form structure of form values."
But when I try to return a true or false it tells me I can't.
As I have a deadline to get this done I will be forced to run this in a scripting object, but I don't understand the reason for having a validate event at all if you cannot tell if that validate event succeeded.
Tom