@Do(@SetField("ErrorText";"Error! Please insure you have completed all steps to continue");@Command([ViewRefreshFields]);@Return(""));
@SetField("ErrorText";"")
);
@Command([FileSave]);
@Command([FileCloseWindow])
No after the @DO i want some thing that can call my second action which is in Javascrip to call a popup so this works in a webbased program aswel as Notes.
My second action is a simple popup called “Popup”
alert(“Error! Please insure you have completed all steps to continue”)
Subject: RE: making an action call another action can this be done?
If you can count on JavaScript working at all, then you’re doing it backwards. Validate the data first. A Formula action on the web means that the document has to be submitted to the server, so even if the “just checking” portion of the formula fails, the document has already left the browser. Do your checks in JavaScript while the document still lives in the browser then, if the data passes validation, submit to the server. (You can call the main button’s click() method to do the submission, or simply call the form’s submit() method after changing the appropriate field value.)