/ Forums / Advansys Formativ / Creating Solutions with Formativ / On Send event – How to manage exceptions ? / Reply To: On Send event – How to manage exceptions ?

#6629
Support 1a
Participant

The GroupWise.CancelGroupWiseEvent should do what you want. You will need to be using a more recent version of Formativ for this work (1.5.3 or newer I suspect).

Here’s an example. Integrate this applet on the email On Send event, restart the client if required, then try to send an email message.

Sub Main(Client, GWEvent)

  if MsgBox("Do you accept the terms and conditions?", vbYesNo, "Formativ") = vbNo then
    GroupWise.CancelGroupWiseEvent = true
  end if

End Sub

I hope this helps.

Advansys Support