Custom field to format phone number?

Is it possible to create a custom field for a list item to format a phone number (e.g. take 555-555-5555 and format it to (555) 555-5555)?  Does anyone have any examples?

Hi,
If you want to format the phone number to (555)555-5555, you can create a calculated column base on the phone number column and set its formula as” ="("&REPLACE([phone number],4,1,")")” .
For more information about formula, please refer to: http://office.microsoft.com/en-us/sharepointtechnology/CH100650061033.aspx
Hope it can help you.
Xue-Mei Chang

Similar Messages

  • Use custom field for work phone number in CUCiLync

    Hi,
    I have searched and tried out all sorts of different settings for enabling/changing the way CUCiLync searches the Active Directory (AD) for contact phone numbers.
    But no matter what setting I use in the HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\AdminData and/or HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\Active Directory hive, CUCiLync still uses the default for Work phone number. The default for this is to use telephoneNumber, the value that I wish to use is the ipPhone field.
    The registry values that I have tested so far are these.
    HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\AdminData
    LDAP_AttributeName_businessPhone
    LDAP_AttributeName_primaryPhoneNumberForSearches
    LDAP_AttributeName_otherPhone
    All set to ipPhone, and I have also tested to set it to another field in AD that contains the same value as the ipPhone, that is in my case extensionAttribute5.
    HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\Active Directory
    BusinessPhone
    PreferredNumber
    DisableSecondaryNumberLookups
    First two set to ipPhone and the third set to 0, and I have also tested to set it to another field in AD that contains  the same value as the ipPhone, that is in my case extensionAttribute5.
    The above values comes from these two urls,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucimoc/8_5/english/installguide/config_active_directory.html#wp1141403
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucimoc/8_5/english/installguide/config_active_directory.html#wp1137551
    The later url have this
    Table 3-9 LDAP Registry Subkeys
    Subkey   Names
    Description
    LDAP_AttributeName_primaryPhoneNumberForSearches
    Specify   the phone number that you use to resolve most LDAP queries. This value must   match one of the values specified for the following LDAP keys:
    •LDAP_AttributeName_businessPhone
    •LDAP_AttributeName_homePhone
    •LDAP_AttributeName_mobilePhone
    •LDAP_AttributeName_otherPhone
    The   values that are valid for the LDAP attribute keys listed above are:
    •telephoneNumber
    •homePhone
    •mobilePhone
    •otherTelephone
    •a   custom LDAP attribute value, for example, myCustomPhoneNumber
    The   value of the LDAP_AttributeName_primaryPhoneNumberForSearches key must match   one of the values in the list above, for example, telephoneNumber. Otherwise,   the value of the LDAP_AttributeName_businessPhone key is used.
    The version of CUCiLync is 8.5(3)-4.5.9, that is the latest I can find on the support download page, have also tried with earlier version 8.5.(1).
    Does anyone have any suggestions for how to achieve this, if at all possible?
    Roger Kallberg

    This is the reply we got from TAC.
    Regarding to your query, Can you please go through the attached flow diagram (also you can see it in the link given below). I hope it will clarify more on the telephone number display behavior in office communicator.
    As per this flow chart presently your setup is working as designed. As per the design, the number should be in E.164 format in order to be available in MOC.
    You have AD in your network as a source, so  OCS pulls this information from LDAP it is integrated with. As per Microsoft, here you need to add Normalization rules to OCS to normalize the number into the E164 format.
    http://technet.microsoft.com/en-us/library/bb964002%28office.12%29.aspx
    Phone number display for MOC contact:
    •-          OCS will not provide a contacts number unless it is correctly formatted to the E.164 standard.
    •-          The Address Book Service on OCS processes the contacts phone number and attempts to normalize it.
    •-          If correctly normalized then the number is inserted into the OCS address book.
    •-          Communicator will only display this normalized number if it is properly formatted in E.164 (+13125551234).
    •-          The E.164 standard defines an international numbering plan for public phone systems.
    •-          In the E.164 standard, each number contains a country code, an area code, and a subscriber number.
    •-          Each phone user has a globally unique number.
    •-          In Cisco UC Integration for Microsoft Office Communicator, phone numbers in E.164 format must begin with a plus character ("+").
    I have done some research to your first question. Can you please just go through the blog given below from the Microsoft.
    http://blogs.pointbridge.com/Blogs/schertz_jeff/Pages/Post.aspx?_ID=26.
    It tells that If the numbers not in E.164 format then the number will not appear in office communicator if LDAP integrated. Can you please check with Microsoft to see their inputs on this.

  • Formatting phone number: how to get rid of (...)?

    I live in Romania, and Contacts incorrectly formats phone numbers of the type xxxx xxx xxx (10 digit, the national standard, out of which the first is zero) into (xxxx) xxx xxx, i.e. inserting brackets before the first and after the 4th digit respectively. This is wrong. The bug is seemingly banal, yet it has bad consequences: if phone numbers are exported to Android, some Android devices, not all, alas, cannot dial such numbers and the process is stopped. Well, this may be a bug in Android, nevertheless the problem exists.
    A workaround is to choose another country as standard, e.g. Czech Republic. It works, but only for numbers added from that/this moment on, it does not remove (...) from the existing numbers.
    Q: how can I remove those stupid brackets (....) from the existing phone numbers? I need a global solution, a script or something...
    I reported the issue to Cupertino but they seem to be extremely slow, I do not understand why. Those brackets are incorrectly inserted, the national standards specifies a 10-digit number, out of which the first is zero, which is removed in case of international calls, and the prefix is added.

    Self answer: I changed country at hazard to Czech Republic, and all the phone numbers have been meanwhile changed from the wrong format (xxxx) xxx xxx to the correct format 0 xxx xxx xxx
    Praise be to hazard settings.
    P.S. Yes, I marked myself with a green bingo.

  • CS3, PHP, Javascript: Auto-formatting phone number pre-post

    Hi guys and gals, I'm creating a simple user registration form, with a text field to have the user enter their phone number (this should autocorrect as the user types it). Grabbed a javascript snippet online, and I see whats going on in the code, but for some reason, its no workey
    Have 3 parts to the webpage, these are:
    The Javascript: "includes/ValidatePhone.js"
    // JavaScript Document
    <SCRIPT LANGUAGE="JavaScript">
    var n;
    var p;
    var p1;
    function ValidatePhone(){
    p=p1.value
    if(p.length==3){
         //d10=p.indexOf('(')
         pp=p;
         d4=p.indexOf('(')
         d5=p.indexOf(')')
         if(d4==-1){
              pp="("+pp;
         if(d5==-1){
              pp=pp+")";
         //pp="("+pp+")";
         document.form1.number.value="";
         document.form1.number.value=pp;
    if(p.length>3){
         d1=p.indexOf('(')
         d2=p.indexOf(')')
         if (d2==-1){
              l30=p.length;
              p30=p.substring(0,4);
              //alert(p30);
              p30=p30+")"
              p31=p.substring(4,l30);
              pp=p30+p31;
              //alert(p31);
              document.form1.number.value="";
              document.form1.number.value=pp;
    if(p.length>5){
         p11=p.substring(d1+1,d2);
         if(p11.length>3){
         p12=p11;
         l12=p12.length;
         l15=p.length
         //l12=l12-3
         p13=p11.substring(0,3);
         p14=p11.substring(3,l12);
         p15=p.substring(d2+1,l15);
         document.form1.number.value="";
         pp="("+p13+")"+p14+p15;
         document.form1.number.value=pp;
         //obj1.value="";
         //obj1.value=pp;
         l16=p.length;
         p16=p.substring(d2+1,l16);
         l17=p16.length;
         if(l17>3&&p16.indexOf('-')==-1){
              p17=p.substring(d2+1,d2+4);
              p18=p.substring(d2+4,l16);
              p19=p.substring(0,d2+1);
              //alert(p19);
         pp=p19+p17+"-"+p18;
         document.form1.number.value="";
         document.form1.number.value=pp;
         //obj1.value="";
         //obj1.value=pp;
    setTimeout(ValidatePhone,100)
    function getIt(m){
    n=m.name;
    //p1=document.forms[0].elements[n]
    p1=m
    ValidatePhone()
    function testphone(obj1){
    p=obj1.value
    //alert(p)
    p=p.replace("(","")
    p=p.replace(")","")
    p=p.replace("-","")
    p=p.replace("-","")
    //alert(isNaN(p))
    if (isNaN(p)==true){
    alert("Check phone");
    return false;
    </script>
    And then we have the actual PHP Form, "includes/Users_Insert.php":
    <form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" enctype="multipart/form-data">
    <table>
         <th class="WADADataTableHeader">Phone Number:</th>
         <td>
              <input type="text" name="number" id="number" size="32" onclick="javascript:getIt(this)" />
              <?php echo $tNGs->displayFieldHint("number");?>
              <?php echo $tNGs->displayFieldError("Users", "number"); ?>
            </td>
         </tr>
          <tr>
              <td class="WADADataNavButtonCell" nowrap="nowrap">
              <input type="image" name="KT_Insert1" id="KT_Insert1" value="Insert record" src="../WA_DataAssist/images/Pacifica/Refined_insert.gif" />
           </td>
              <td class="WADADataNavButtonCell" nowrap="nowrap"><a href="users.php" title="Cancel">
                   <img border="0" name="Cancel" id="Cancel" alt="Cancel" src="../WA_DataAssist/images/Pacifica/Refined_cancel.gif" /></a></td>
         </tr>     
    </table>
    And here is the calls to put all of that together, "add_user.php":
    <html><head><title></title>
    <script src="includes/ValidatePhone.js" type="text/javascript"></script>
    </head>
    <body>
    <?php include("includes/Users_Insert.php"); ?>
    </body>
    </html>
    (didn't paste the whole website obviously, just the parts that should be relevant).
    Anyone see anything in the code as to why this wouldn't be working as intended?

    You are not telling your form to validate the phone no.
    For a brief description of validating a form see - http://www.w3schools.com/jS/js_form_validation.asp
    Take special notice of - onsubmit="return validate_form(this)"
    PZ

  • Country field mandatory when phone number is registered in BP creation

    Hi all,
    I have next question.
    We are creating in IC Webclient Contact Persons not related to an account and even in configuration we put as "optional" country field, if we create them registering a phone number system shows message "country field is required".....do you know if there´s a way to put as optional or a default value to minimize this?...
    Thanks in advance.
    Gonzalo C.

    Hi Gonzalo,
    Telephone (and other communication data such as fax , email) can be of two tyeps :
    1. Address dependent - needs you to first maintain the address If you delete the address, all the communication data maintained for this address is also deleted
    2. Address independent. - does not need address. This data remains irrespective of the existence of any address.
    In this case, you are attempting to default the address dependent telephone number - and this is not allowed in case you don't have an address( and since country is a mandatory field for address, you get the error )
    The solution here is for you to simply create the telephone as an address independent number, in which case it is linked to the partner directly. This is how the link is maintained.
    Address dependent comm data-
    Find the address number from BUT020 for the partner, use this address number in ADR2 to get the address dependent tel num.
    Address independent comm data-
    Get the address number from BUT000 (field ADDRCOMM) . Use this address num in ADR2 to get the address indpependent tel num.
    This will solve your problem.
    Best Regards,
    Rishu.

  • Formatting Phone Number

    Man I'm trying to format a 10 digit phone number to display as (xxx)xxx-xxxx... how do i do it? I'm very green w/ sql... Any help please!?

    use a SUBSTR() here is an example.
    SQL> select '('||substr('8001434444',1,3)||')'||
      2         substr('8001434444',4,3)||'-'||substr('8001434444',7,4) phone
      3    from dual;
    PHONE
    (800)143-4444
    SQL>

  • Generic funtction  return  format string Phone Number

    Hi
    I tried , tried but nothing
    I need build a Generic Function formating phone number, passing Type Telephone (Res,Cml,Cel...etc wiht 3 letters ) , Prefix can to have 3 or 4 digits and Sufix wih 4 digits
    How Can I to do It ?
    where can I to find tutorial about Regular Expression
    thank

    Asking the same question again?
    Re: Function that to Format
    Look in the documentation for regular expressions (it's not difficult to search you know!)
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_regexp.htm#ADFNS1003

  • Adding Custom Field to GW Messages

    I have a project where I have to add a custom field for a File Number to
    both new and existing GW Messages (email, appointments, tasks, notes,
    phone). I understand from the documentation for GW Object API how to
    create a custom field definition and add a field to a message. However, I
    have to use the C3PO to allow the User to add the field to messages and I
    am new to this.
    My questions are:
    A) For New Messages
    1) Can I add a textbox to the built-in GW Message dialog for the File
    Number (if so, how), or would I have to recreate the wheel by creating a
    new subclass of the message and design the form?
    2) Would it be better to display a separate custom dialog for the User to
    fill out just the File Number by trapping events such as message create
    event? Any ideas how?
    B) Existing Messages
    1) I know I can add buttons to the GW Toolbar. If I add a button to
    display dialog for User to fill out File Number for the selected
    message(s) in the InBox or other folders, would I use the ClientState
    Implementation SelectedMessages property to do this?
    2) Will Users be able to use GW Find feature to find messages with a
    custom field (File Number)?
    Thanks in advance for any help you can provide!!
    Suzanne Gregg
    AppSolute Consulting Inc.

    I have a project where I have to add a custom field for a File Number to
    both new and existing GW Messages (email, appointments, tasks, notes,
    phone). I understand from the documentation for GW Object API how to
    create a custom field definition and add a field to a message. However, I
    have to use the C3PO to allow the User to add the field to messages and I
    am new to this.
    My questions are:
    A) For New Messages
    1) Can I add a textbox to the built-in GW Message dialog for the File
    Number (if so, how), or would I have to recreate the wheel by creating a
    new subclass of the message and design the form?
    2) Would it be better to display a separate custom dialog for the User to
    fill out just the File Number by trapping events such as message create
    event? Any ideas how?
    B) Existing Messages
    1) I know I can add buttons to the GW Toolbar. If I add a button to
    display dialog for User to fill out File Number for the selected
    message(s) in the InBox or other folders, would I use the ClientState
    Implementation SelectedMessages property to do this?
    2) Will Users be able to use GW Find feature to find messages with a
    custom field (File Number)?
    Thanks in advance for any help you can provide!!
    Suzanne Gregg
    AppSolute Consulting Inc.

  • Address Book, importing text tab file, custom fields not there

    Searched thru all past posts. Found some that are close but not what I am trying to do.
    Open Address Book, go into Preferences, select Template and under the Names field (friend, assistant, father, etc) I add a custom field called "Keyword".
    I also add two more custom fields in the Phone area called "Work 3" and "Work 4". There are other custom fields I need but I want to keep this short.
    Quit Address Book then relaunch. Add a new contact and the new custom fields, Keyword, Work 3 and Work 4 are there. All good so far.
    I have a Now Contact file with about 800 contacts in it. I export all fields as a Text file, Tab delimited. No problems there. With Address Book launched, select Import, pick the text file, leave Text Encoding on Automatic and click Open.
    The window that shows the fields for Address Book and fields for the text file side by side opens. This is where you match up the correct fields for importing. If I go to one of the fields from the text file that I created a custom field for, click under the Address Book heading on the Do not import, scroll thru the Apple choices of fields, none of the custom fields show up. Only the original Apple ones are there. Why does Apple let you create them in the Template area but not have them available for importing?
    That is my problem.
    Adding new contacts as I get them, is fine. Importing 800 contacts with these custom fields is not possible.
    I could map them to go to the Notes field along with actual notes but that is inelegant. The custom fields are there, why can't we use them to their full potential.
    This appears to be a bug to me. Let me know what you think.

    Hi Adam,
    Thanks, but the problem is not importing to AddressBook, it is exporting.  I did discover from another that I can export very easily to a Numbers spreedsheet.  It is exceptionally simple.  But it will not export custom fields.  Someone said that is because of a vcard standard.  My custom fields are just "name" fields that I have labeled differently.  But Numbers does not support the name (it only takes the name of the card).
    Christine

  • Need to have Phone Number field as just numbers with no formatting.

    We have a web service that is passed the work phone field from the contact object. That WS uses the phone number to auto-dial the customer's number for our sales reps.
    My issue is that the WS expects to just see the area code and the phone number as digits as 1235554444. It has been working fine for over a year and recently been failing as now the numbers come in with a "+" sign.
    The format seems to change depending on the time of day I look at the fields and is random for each user. The company profile is set to USA as the default and so are the user's locale settings.
    How do I make the "+" go away?
    I have tried various settings and couldn't seem to find one that didn't give me the formatting. I've also tried to copy the work phone field to a hidden field and using WF to strip out the "+" but there seems to be no way to do a REPLACE() function in a WF rule.
    Any ideas?

    So after spending enough time with this I was able to find a way around the issue. Ultimately I needed a phone number format that was fixed and would not mask the data per the user's locale settings. It also needed to be just area code and phone number shown as 1112223333.
    On the contact object, a new field was created as a Short Text. Then a WorkFlow as created that copies over the value from the WorkPhone field into this unformatted number so that it can be passed to our Web Service.
    It took a while for me to figure this out since if you just use the WorkPhone variable you get all the masking based on locale. I didn't have the functions available to me in the WorkFlow to just strip spaces and "+" or "( )" so I needed it to be as close as I coudl to just a basic phone number. By using the FieldValue() function it seemed to take a number like 1 (555) 444-4444 and return 1 555 4444444. This works no matter if it was +1 555 4444444 or +41 555 4444444 so I could then use some pattern logic.
    This is what I used to copy that data over to my temp/work field which is now passed to our click-to-dial function.
    Mid(FieldValue('<WorkPhone>'), InStr(FieldValue('<WorkPhone>'),' ') + 1,3) + Right(FieldValue('<WorkPhone>'),7)

  • Will CCB support '+' sign on the Customer phone number?

    Hi All,
    In my setup, all the inbound calls are coming with '+' sign(eg., +1 23488753), and in this environment I'm using CCB application also.
    On the CCB application, if the call is with '+' on the CCB application then call is getting disconnected on the call back entry application in the ICM Script. So i have stripped '+' to get the call scheduled. And now i want to add this '+' sign at the time of scheduled call back.
    I have tried to add this '+' sign on the Callback entry application in "Add Callback to DB 1" element but on the CVP reporting server DB(Informix DB), i can see the customer phone number is getting stored without '+' sign. It seems Informix DB will not support this '+' but in the same DB i can see the ANI field format as "varchar(32)"
    Can some one please assist on adding this '+' sign on the application level(either ICM or CVP application side) itself?
    Informix DB screenshot in the attachment.. Please let me know if any application log is required for analysis.
    CVP Version -  9.0(1)
    Note - Here we are using CUBE.
    Regards,
    Sathish

    You can change the phone number the verification code is sent to from a device or Mac that has your iCloud keychain enabled as follows:
    In iOS 8, tap Settings > iCloud > Keychain > Advanced. In iOS 7, tap Settings > iCloud > Account > Keychain. Make sure the phone number under Verification Number is correct. If not, enter another phone number.
    In OS X Mavericks v10.9, choose Apple () > System Preferences. Click iCloud, then click Account Details. Make sure the phone number under Verification number is correct. If not, enter another phone number.
    If you don't have access to a device or Mac with your iCloud keychain enabled, you'll have to contact Apple support to verify your identity and get assistance making the change: http://www.apple.com/support/icloud/contact/.

  • How to "force" specific format for data entry field (ex: European Phone #)

    Hi,
    I have a table field of 10 chars long holding a phone number.  I need to display this field and allow modification on its content in the following format: "99_99_99_99_99" where "_" is a blank.  What would be the easiest way of managing this ?  Of course, I don't want to store the blanks in the table field.... blanks are only used to make the phone number easier to read.
    Any suggestions will be appreciated.
    Thanks in advance.

    Hello
    Conversion routine is identified by its five-place name and is stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
    CONVERSION_EXIT_xxxxx_INPUT
    CONVERSION_EXIT_xxxxx_OUTPUT
    So you can use se37 to create these modules.
    Kind regards

  • 10 digit phone number format

    Does anyone know of a way to change the default BB 10-digit phone number format of NNNNNNNNNN to include either spaces or parentheses?  i.e. (NNN) NNN-NNNN or NNN NNN NNNN.   

    Hi and welcome to the forums.
    If you setup your contact in the (722-344-66770 you can certainly do it. The field is numeric..
    You can view the contact and it will be that format, but when you dial, it will just be numbers, The telco has no need of the dashes and parenthesis so the BB doesn't waste space displaying and sending them.
    The dashes and () in this case mean nothing to the telco. There are symbols that do, but if you stay with these your safe.
    If you need further assistance please ask! If not:
    Please resolve the post using the green kudo's box. Simply check the post that had
    your answer in it. Thanks!
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • How to set phone number format like start with 0 or + it is not allowing

    Hi All,
    We Are trying to give in phone number field as number start with 099235623 or +91- like that
    but it is not allowing to chage format
    it is taking 99235623 eventhouh we entered as infront of zero
    our requirement is we need to enter zero also
    please give any idea
    Thanks
    Rio

    Hi,
    First Check the Data Type of the Field. That must be "DTYPE_PHONE". If this is the Data Type, then, it will allow the phone format set at the Locale Level for the Application. Check the Format at Locale Level.
    [OR]
    It's simple, you can change the Data Type of the particular Field to "DTYPE_TEXT".
    Regards,
    Joseph ArulDass

  • Customer service phone numb

    Looked all over the Creative website, and I'm unable to locate any kind of phone number to contact Creative. Specifically I'm looking for a general customer service number, but ANY number to contact Creative would be great.
    Thanks

    When I go to "contact customer support" I get to a page that says "select the department you wish to contact". I select customer support, and under the telephone support field this is what there is: "Free telephone support for the first 60 days of ownership. Refer to your product's documentation for the support number in your region."
    So I go to download my product's documentation...it says that it is no longer supported.
    I looked on my CD...don't see anything anywhere that gives a phone number. I've browsed the CD's contents quite thoroughly, and I didn't see any number.
    Even when I outright just ask for the number... I've given the same instructions that I've already seen, and followed on this website. Is this number trying to be kept secret or something? If the number is on this website, could you please provide a link to that page, as I was unable to find it. That or just the number please. ANY customer service number will do. ANY number, for any product, or any area of Creative support.
    So far this "award winning customer support" is off to a pretty bad start. All I want to do is call Creative, and so far it's taken a couple hours before I've even been able to dial a number.

Maybe you are looking for

  • JDBC TO JDBC  adapter

    Hi ,          i am using JDBC to JDBC adapter.in my scenario sender comunication channel is in error. Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (.mdb)}  ;DBQ=C:\xifile\Student_Database.mdb' using

  • Scaling two layers up without losing position

    Greetings, I've got two video layers, one a standard clip and the other a motion-tracked layer with a mask, parented to a null object. (I've made a girl's body red, and her face black and white) I've got key frames set on the masked layer for layer p

  • Please help with "500 Internal Server Error"

    Hi all, I get a "500 Internal Server" error when doing some processing with a Java program that makes HTTP calls into an application API deployed as WAR file on a OC4J midtier installation. The process works fine until I get a "500 Internal Server" a

  • Downloaded Song Error

    Recently I purchased and downloaded a song from the iTunes store. However during my download I lost internet connection for a couple of minutes and yet the song still downloaded. The song is in my library, however when I try to play it (I double clic

  • How do i delete items from my dashboard?

    can anyone help me - i'm trying to delete and/or add items to my dashboard. thanks!