• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

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

Hello,

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!
0
Jason_Place
Asked:
Jason_Place
  • 2
1 Solution
 
David LeeCommented:
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: http://www.outlookcode.com/article.aspx?id=38  Your code will need to use the Format function to make a custom field behave the way one of the built-in fields behaves.
0
 
Jason_PlaceAuthor Commented:
Thanks for the help.  That's what I was afraid of, but I'm glad to at least know what is needed.
0
 
David LeeCommented:
You're welcome.
0
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.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now