Menu

Phone field

Help
Tom Landon
2008-08-26
2013-06-03
  • Tom Landon

    Tom Landon - 2008-08-26

    On one form, I have a Phone field. I would like to have it format the entry field and output to XXX-XXX-XXXX or XXX.XXX.XXXX rather than XXXXXXXXXX.

    I have no idea how to do this.

    Any help?

    Thanks,

    Tom

     
    • Musawir Ali

      Musawir Ali - 2008-08-27

      you'd have to do it manually, would require a bit of code change. Try locating the phone number field variable in the PHP code, and adjust format there.

       
    • TNTEverett

      TNTEverett - 2008-08-27

      It's hardly worth the effort of reformatting the entry.  You best bet is to define a required format and then check to see that it meets the format criteria.  If the entry does not match then the entry can be rejected just as other required entries are rejected if they are blank. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.