Adding JavaScript to a Notes Formula

I have a form action button with the following formula:

function := “javascript:processDocument(window.document.forms[0])”;

@URLOpen(function);

@Command([FileSave]);

The JavaScript that’s called simply displays a message if a field is null. If the field is not null, the @Command([FileSave] does not execute even if the JavaScript includes the following:

return ( true );

I’d appreciate any ideas on why the @Command([FileSave] does not execute after the JavaScript runs.

Thanks.

Subject: Adding JavaScript to a Notes Formula

You could try making it a @postedcommand instead of a @command. Youcould also add a ferw prompts to make sure that things are happening in the order you expectChris

Subject: Adding JavaScript to a Notes Formula

Why are you doing it this way instead of using straight Javascript and the onsubmit event to do your processing?