Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Forms, Fields, Messagebody and Public Folders

Posted on 2004-04-14
2
Medium Priority
?
221 Views
Last Modified: 2010-04-08
Hi, I am quite new to Forms in Outlook but we here have the following wish and I am the one who has to look into it.
A form in a public folder must be sent to one e-mail address. The receiver is a simple mailclient and must receive the information of the serveral fields all together in the messagebody.

The form is intended to be used as a software ordering form. The fields will be: "Name Softwarepackage", "Amount", "Employee number".
The e-mail is used in a Servicedesk application (Magic from NAI). The application will use the messagebody as the servicedesk call information. Therefor the messagebody should look like this:
Name software package: MS Office
Amount: 2
Employee Number: 690124123-456

How can I get these fields into the messagebody?
0
Comment
Question by:fbict
2 Comments
 
LVL 7

Accepted Solution

by:
rosesolutions1 earned 2000 total points
ID: 10829740
This code will take the values from your custom fields and put them into the messagebody after the user presses the SEND button (but before it actually gets sent).

In the Form designer, open the vbscript window (Forms/ViewCode). Paste in the following code.  You need to update "MyField1" to whatever you called the first field, etc.

Function Item_Send()
set objProperty = Item.UserProperties.Find("MyField1")
If TypeName(objProperty) <> "Nothing" Then
      Item.Body = Item.Body & "Name software package: " & objProperty.Value
End If
'do it again for each of the others...
End Function



0
 

Author Comment

by:fbict
ID: 10831072
It works....thank you
I only changed the sequence in the Item.Body so that the signature comes at the end.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 trialware OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their Exchange server is no longer available or other critical issues with Exchange server or impo…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question