|
-
Jun 28th, 2010, 03:39 AM
#4
Thread Starter
Frenzied Member
Re: Outlook Forms - Task form cancel send
 Originally Posted by FishGuy
Hi Sid,
That is the full code, basically the Item_Write event is the event available in the script editor which fires automatically, I did think it strange that it is a function not a procedure. It Item write and Item send both fire when the send button is pressed and I call my two validate functions to check the values of the text boxes on the form and if required show a message.
If the validation is fine I am happy for it to send and close the form, if the validate functions return a string then I want it to not send and allow the user to revisit the form to re-submit after correcting the errors.
I googled my problem and found this similar
First time posting to this forum so if this is and old problem please forgive me in advance. Googled the problem and found nothing.
I created a custom form using a task request template and when I tried to handle the send event nothing happened. (VBScript) So I handled open and write and close and they all worked. In fact the Write Event fired twice successively
You can replicate with the following VBScrip
Function Item_Open(
MsgBox "Open
End Functio
Function Item_Read(
MsgBox "Read
End Functio
Function Item_Write(
MsgBox "Write
End Functio
Function Item_Close(
MsgBox "Close
End Functio
Function Item_Send(
MsgBox "Send
End Functio
even in a blank task request form this code doen't fire the Send Event but fires Write twice. It makes it a little hard to do field validation before a send and of course you can't cancel the send. Anybody had similar probs
It looks like I may not find a solution to my problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|