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])
LVL 4
pratiganAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

qwaleteeCommented:
answer1 := @Prompt([YesNoCancel]; ...... );
@If(answer1 <> 1; @Return(Cancelled); Continue);

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pratiganAuthor Commented:
Excellent qwaletee.... Excatly what I was looking for.
Thank You !!
0
pratiganAuthor Commented:
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.
0
pratiganAuthor Commented:
Hello qwaletee,
Got it working using the @Return() trap.  You gave the push in the right direction.
Thank you !
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.