Weird javascript submit problem

Maybe someone can figure this one out…

We just upgraded out server to 6.5.1. Suddenly our web apps are not working properly anymore…

Whenever we do field validation with javascript and one of the manditory fields is left blank we get the proper error message but then we get a blank page with the word “false” displayed.

The code is VERY basic…

function doSubmit() {

form = document.forms[0];

var valid = "" ;



if (form.Subject.value == "") {

	alert("You must enter a value in the Subject field") ;

	valid = "No" ;

	return False;

}

if (form.Author.value == "") {

	alert("You must enter a value in the Author field") ;

	valid = "No" ;

	return False;

}



if (valid == "") {

	_getEditAppletData();

	form.submit();

	return true

}

}

We are using the Rich Text applet… I’m wondering if that might be the problem??

Any ideas are welcomed!

Thanks.

K.

Subject: doSubmit() returns a value

I expect that you are calling doSubmit() from your form’s Submit event. The line “return False” in your function exits the function and returns the value “false” to the Submit event. Domino then displays this value.

If you want this to work properly either (a) move the content of doSubmit() to the Submit event itself, or (b) change the Submit event’s javascript to:

if (doSubmit()==false){

return false

}