How can I apply standardized formatting to custom outlook fields in a contact form?

Posted on 2008-11-17
Last Modified: 2012-05-05

We are attempting to make a customized contact form for our service department.  We have created a few custom fields and can enter data in them fine.  However, we would like some of those fields to autoformat the way some of the built in contact fields format.

For example, we wish to have a field called "Service Rep Contact Email," in order to be able to contact the primary service representative for that customer.  If we use the standard "Email/Email 2/Email 3" fields built into Outlook, it automatically formats the entry like an email and turns it into a link that can be clicked on.  If we create a new field that holds a Text value, we can type in the email address, but it will not format.  The same thing goes for fields meant to hold custom phone numbers, etc.

We could just add the built in fields and then change the label on the form, and it would display fine on the screen - but printing seems to be linked to the Value of the field, not to the field's name or the label's properties.  So when printed, what is displayed on the screen as "Service Rep Contact Email" would come out as "Email 2" which would likely just cause a large amount of confusion.

Thanks for your help!
Question by:Jason_Place
    LVL 76

    Accepted Solution

    Hi, Jason_Place.

    Formatting a coustom field is going to require writing code behind the form.  When the value of a field changes an event is fired.  You will have to write code to trap that event and format the value that was entered in the field.  Here's a link to a page with details and examples oh handling this event:  Your code will need to use the Format function to make a custom field behave the way one of the built-in fields behaves.
    LVL 1

    Author Closing Comment

    Thanks for the help.  That's what I was afraid of, but I'm glad to at least know what is needed.
    LVL 76

    Expert Comment

    by:David Lee
    You're welcome.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    Sorry for my English and Italian screenshots..... Problem: Every Year the number of E-Mails grow dramatically and the space that they take on Exchange Servers or .PST files, grow much more faster, once it was only text, now our E-Mail Archives …
    Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
    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 …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now