Link to home
Start Free TrialLog in
Avatar of pratigan
pratiganFlag for United States of America

asked on

prompt trap

Hello All,
I have a submit button on a form that sends the document into an approval process.  I want to trap the YESNOCANCEL Prompt before the emails are sent out.  Is there a test that I can do.  Here is the submit logic.
zekepmt := "A ZEKE Event Request will be generated and sent to GIS.";
mobispmt := "A Mobius Report Request will be generated and sent to GIS.";

@If(Prod_cklst_ZEKE_flag != "" & Prod_cklst_mobius_flag = "";
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  " + zekepmt + " Do you wish to Submit for Review ?");
Prod_cklst_ZEKE_flag = "" & Prod_cklst_mobius_flag != "";
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  " + mobispmt  + "   Do you wish to Submit for Review ?");
Prod_cklst_ZEKE_flag != "" & Prod_cklst_mobius_flag != "";
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  " + zekepmt + " & " + mobispmt   + " Do you wish to Submit for Review ?");
@Prompt([YESNOCANCEL];"ATTENTION - Review Submission Initiated.";"This Document has been submitted for GIS Turnover Review.  No Mobius or ZEKE Event forms have been generated.  Do you wish to Submit for Review ?"));

@MailSend("Paul R Ratigan/CIV/CSC"; "";"";"An Application Turnover Document has been Submitted for GIS Review.  Please refer to the doclink CM Review Mtg Date.";"";"Turnover Doc Link =>  "; [IncludeDoclink]);

@If(input1 != "" | Output1 != "";
@MailSend("Paul R Ratigan/CIV/CSC"; "";"";"An Application Turnover Document has been Submitted Containing External Interfaces that need to be Established or Reviewed.  Please refer to the doclink for Details.";"";"Turnover Doc Link =>  "; [IncludeDoclink]);"");

@SetField("Status"; "Submitted");
@Command([FileSave]);
@Command([FileCloseWindow])
ASKER CERTIFIED SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pratigan

ASKER

Excellent qwaletee.... Excatly what I was looking for.
Thank You !!
How do I get this inside the if statement.
I want the prompt executed only on the first @IF but I can't put the := inside the if.  If I put it first I get multiple prompts.
then the trap runs.
Hello qwaletee,
Got it working using the @Return() trap.  You gave the push in the right direction.
Thank you !