Get a Jumpstart with our Sample Apps
Results 1 to 2 of 2

Thread: How to format a phone number in formview?

  1. #1
    Member
    Real Name
    Todd
    Join Date
    Oct 2008
    Posts
    19

    Default How to format a phone number in formview?

    My phone_numbers are stored in character (nvarchar) fields. How to I apply a template in formview?

  2. #2
    Alpha Software Employee Beta Spark's Avatar
    Real Name
    Sarah Mitchell
    Join Date
    Jul 2015
    Posts
    385

    Default Re: How to format a phone number in formview?

    Hello Todd!

    Client-Side Templates can be used to format data in the FormView control. You can use the Number format directive to display the Phone number in the desired format. For example:

    Code:
    {PHONE_NUMBERS:number('=(###) ###-####')}
    Will format a number, such as "1231231234", to appear as "(123) 123-1234":

    phoneFormat.png

    In the attached zip file, PhoneFormat.zip, you will find the component I created to demonstrate how to format numbers.

    Good luck!
    Attached Files Attached Files
    Sarah Mitchell

    Looking for answers? Try our documentation.
    If you can't find something, let us know!

Similar Threads

  1. How to format date field in a formview
    By dougeven in forum Tablet-Optimized Form Capabilities Beta
    Replies: 2
    Last Post: 09-25-2015, 06:39 PM
  2. Format phone number
    By aschone in forum Mobile & Browser Applications
    Replies: 5
    Last Post: 04-02-2015, 04:14 PM
  3. Javascript to Format Phone Number
    By Steve Workings in forum Application Server Version 9 - Web/Browser Applications
    Replies: 0
    Last Post: 05-04-2009, 06:34 PM
  4. fixing format of Phone number field
    By barry685 in forum Alpha Five Version 9 - Desktop Applications
    Replies: 3
    Last Post: 03-26-2009, 05:12 PM
  5. Format Input box for Phone number
    By crimmelcp in forum Web Application Server v7
    Replies: 4
    Last Post: 05-15-2006, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •