Results 1 to 3 of 3

Thread: How to validate the phone fields?

  1. #1
    rajesh22 is offline Senior Member
    Join Date
    Sep 2008
    Posts
    31

    Default How to validate the phone fields?

    Hello,

    I am customizing Sugar.
    I have created a module called customer. I added the customer details such as address, home phone, office phone etc.,
    The phone number fields should accept only the numerical values, but in sugar contacts Alphabets are accepted as a phone number. I dont know whether its my problem or Sugar's. Can any one one clarify?

    Thanks,

    Rajesh

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to validate the phone fields?

    Hi Rajesh

    The Phone validation on SugarCRM are not well implemented yet.
    So you could use any other validation function for phone.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: How to validate the phone fields?

    Check out this forum post for a way to format/validate phone number fields:
    http://www.sugarcrm.com/forums/showthread.php?t=27245

    Also, in my opinion, accepting letters as well as numbers is valid... an example would be a phone number that spells out out something (like 1-800-GO-WEBEX to get to WebEx's technical support line).
    Susie Williams

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2008-06-17, 06:54 PM
  2. Validate Readonly fields
    By Iggby in forum Developer Help
    Replies: 3
    Last Post: 2008-04-25, 12:15 AM
  3. Custom Fields Not Saving Data
    By vantagejuan in forum Help
    Replies: 1
    Last Post: 2008-04-14, 11:17 PM
  4. Structured phone fields..
    By dpuryear in forum General Discussion
    Replies: 6
    Last Post: 2007-12-20, 03:38 PM
  5. Increase the maximum length of Phone number fields
    By dmarshx in forum Feature Requests
    Replies: 1
    Last Post: 2007-06-29, 06:59 PM

Bookmarks

Posting Permissions

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