OnValidate error gets missed and Code generation gets stuck/locked

Ok this one was driving me nuts for some time but I finally figured it out.
Make a Single Record Form with a few fields.
In the OnValidate Event have several lines like this:
$name={name};
$code={code};
$pick1={pick1};

if($name=="")
{
sc_error_message(“Name field is mandatory”;
}
if($code=="")
{
sc_error_message(“Code field is mandatory”;
}
///
if($pick1=="")
{
sc_error_message(“You must pick at least 1 Set of credentials”;
}

Notice that I am missing the closing bracket on the sc_error_message function.

Now click Generate Code…
It just hangs and hangs and locks up for some time.
I am using Scriptcase Web… not Desktop.

I don’t see any closing bracket ) on the sc_error_message it should be
sc_error_message(“Name field is mandatory”);

Yes. I am aware of that… my point was that the error checkers dont catch it… it just spins and spins and eventually you have to close out SC

Ok I get the point you are trying to make/ Should have read better :slight_smile: