Making an action call another action can this be done?

Hi, i’m wanting to call another action from an action. I have this in my first action:

@If(completed_1=Null | completed_2=Null | completed_3=Null | completed_4=Null | completed_5=Null | completed_6=Null | completed_7=Null | completed_8=Null | completed_9=Null | completed_10=Null | completed_11=Null | completed_12=Null;

@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”)

Cheers

Chris.

Subject: making an action call another action can this be done?

Why> You can use a Formula Language @Prompt IN the @Do to accomplish the same thing.

Subject: RE: making an action call another action can this be done?

because @prompt does not work in web based

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.)