<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to format phone number?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7334643" />
  <subtitle>How to format phone number?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7334643</id>
  <updated>2026-04-04T14:05:27Z</updated>
  <dc:date>2026-04-04T14:05:27Z</dc:date>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111575135" />
    <author>
      <name>Sandeep Nair</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111575135</id>
    <updated>2018-11-16T09:44:18Z</updated>
    <published>2018-11-16T09:44:18Z</published>
    <summary type="html">&lt;p&gt;You have to create a property hook module specified &lt;a
  href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/overriding-portal-properties-using-a-hook"&gt;here&lt;/a&gt; and
  then add the following property&lt;/p&gt;
&lt;p&gt;phone.number.format.impl=com.liferay.portal.format.IdenticalPhoneNumberFormatImpl&lt;/p&gt;</summary>
    <dc:creator>Sandeep Nair</dc:creator>
    <dc:date>2018-11-16T09:44:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111573064" />
    <author>
      <name>Καλλια Γαλιωτου</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111573064</id>
    <updated>2018-11-16T08:49:10Z</updated>
    <published>2018-11-16T08:49:10Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;i have similar problem using Liferay 7.0. And I cant find
  system-ext.properties file, in order to add &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;com.liferay.util.format.PhoneNumberFormat=com.liferay.util.format.IdenticalPhoneNumberFormat&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I am using Number in my form and the user can insert only 9 digits.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any help?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</summary>
    <dc:creator>Καλλια Γαλιωτου</dc:creator>
    <dc:date>2018-11-16T08:49:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21807839" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21807839</id>
    <updated>2013-02-26T12:52:36Z</updated>
    <published>2013-02-26T12:52:36Z</published>
    <summary type="html">Thanks for the information. I think I&amp;#39;ll be able to use that in my Japanese edition of liferay.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2013-02-26T12:52:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21794733" />
    <author>
      <name>Xav NYC</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=21794733</id>
    <updated>2013-02-26T05:55:50Z</updated>
    <published>2013-02-26T05:55:50Z</published>
    <summary type="html">Hi the google phone number library does just that. https://code.google.com/p/libphonenumber/&lt;br /&gt;It&amp;#39;s a matter of integrating it to Liferay.</summary>
    <dc:creator>Xav NYC</dc:creator>
    <dc:date>2013-02-26T05:55:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16793874" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16793874</id>
    <updated>2012-09-30T23:33:35Z</updated>
    <published>2012-09-30T23:33:35Z</published>
    <summary type="html">I&amp;#39;ve been adding country/lang attributes to jsp selections but I don&amp;#39;t think I can do the same with phone number because a Japanese user may want to enter US phone number. I think I&amp;#39;ll add a countryId parameter to a method to verify phone number. I&amp;#39;ll put this in my backlog because I don&amp;#39;t need it in a hurry.&lt;br /&gt;&lt;br /&gt;Fall is the event time in Japan to get users to budget for next financial year. Kind of busy on this front lately.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2012-09-30T23:33:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16793511" />
    <author>
      <name>Jack Bakker</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16793511</id>
    <updated>2012-09-30T21:10:12Z</updated>
    <published>2012-09-30T21:10:12Z</published>
    <summary type="html">yes Hitoshi, u have restated my wondering need&lt;br /&gt;&lt;br /&gt;the chosen Borg takes time to assimilate</summary>
    <dc:creator>Jack Bakker</dc:creator>
    <dc:date>2012-09-30T21:10:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16616031" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16616031</id>
    <updated>2012-09-23T02:49:45Z</updated>
    <published>2012-09-23T02:49:45Z</published>
    <summary type="html">The major problem with the current com.liferay.util.format is that I&amp;#39;m not able to specify different format for different locale. That is, if I have it in US format, I can&amp;#39;t have Japanese format as well.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2012-09-23T02:49:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16613408" />
    <author>
      <name>Jack Bakker</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=16613408</id>
    <updated>2012-09-22T14:09:44Z</updated>
    <published>2012-09-22T14:09:44Z</published>
    <summary type="html">com.liferay.util.format options are not comprehensive, of course neither are my phoneformat utils that I&amp;#39;ve been putting in a seperate *clientname*-utils that I export as jar to global classpath &lt;br /&gt;&lt;br /&gt;there is a google libphonenumber (http://code.google.com/p/libphonenumber/) I am currently reviewing&lt;br /&gt;&lt;br /&gt;are u experienced ? if so pls share... thx</summary>
    <dc:creator>Jack Bakker</dc:creator>
    <dc:date>2012-09-22T14:09:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8780958" />
    <author>
      <name>Jeremy A. Morgenröter</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8780958</id>
    <updated>2011-05-11T11:45:32Z</updated>
    <published>2011-05-11T11:45:32Z</published>
    <summary type="html">Hello Andrej,&lt;br /&gt;&lt;br /&gt;just set&lt;br /&gt;&lt;blockquote&gt;##&lt;br /&gt;## Format&lt;br /&gt;##&lt;br /&gt;&lt;br /&gt;    #&lt;br /&gt;    # Set the location of the class that implements&lt;br /&gt;    # com.liferay.format.PhoneNumberFormat. This class will format phone&lt;br /&gt;    # numbers.&lt;br /&gt;    #&lt;br /&gt;    #com.liferay.util.format.PhoneNumberFormat=com.liferay.util.format.USAPhoneNumberFormat&lt;br /&gt;    &lt;strong&gt;com.liferay.util.format.PhoneNumberFormat=com.liferay.util.format.IdenticalPhoneNumberFormat&lt;/strong&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;in your system-ext.properties and restart Liferay. Works fine using LP6 GA4.&lt;br /&gt;&lt;br /&gt;Best Regards.</summary>
    <dc:creator>Jeremy A. Morgenröter</dc:creator>
    <dc:date>2011-05-11T11:45:32Z</dc:date>
  </entry>
  <entry>
    <title>How to format phone number?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7334642" />
    <author>
      <name>Andrej Litowka</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7334642</id>
    <updated>2011-01-31T12:14:05Z</updated>
    <published>2011-01-31T12:14:05Z</published>
    <summary type="html">Hello all,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using liferay 6.0.2 and adding phone numbers in a portlet with PhoneServiceUtil.updatePhone or PhoneServiceUtil.addPhone. Even if I enter the phone number as e.g. +49 (0) 111 222 333 it will be saved in the table Phone as 49111222333 and also shown on the page like this. I would save the phone number in the same format as I entered it in the form. The field Phone.number_ is a VARCHAR, so it should be possible. Is there any liferay build-in functionality to save the numbers in my own format? How I can configure this? If not, is the only possibility to format phone numbers to implement own PhoneNumberFormat? Currently only USAPhoneNumberFormat is available. There is no formater for Europe.&lt;br /&gt;&lt;br /&gt;Thanks and regards,&lt;br /&gt;Andrej</summary>
    <dc:creator>Andrej Litowka</dc:creator>
    <dc:date>2011-01-31T12:14:05Z</dc:date>
  </entry>
</feed>
