Phone number in International format

For users or potential users.
Post Reply
awadh11
Posts: 9
Joined: Tue Sep 21, 2021 12:47 am

Phone number in International format

Post by awadh11 » Tue Sep 21, 2021 12:53 am

Hi,
Is there any way to display phone number in Australian format?
I would like my wireless phone number as 0437 393 532, but Open Dental displays as (043)739-3532.

Thank you in advance.
Awadh

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Phone number in International format

Post by jordansparks » Tue Sep 21, 2021 7:15 am

What you see is always how it is in the database so that you can include prefixes, suffixes, extensions, notes, odd spacing, etc. So the trick is to get the format the way you want it as entering. The autoformat feature does add as you type, but only in certain situations. After you hit the 3rd digit, it will add the first opening parenthesis before the 3 numbers. If you delete that parenthesis, then it will not try to format any numbers after that. But if your computer region is not set to USA, then it should not auto format in any case.
Jordan Sparks, DMD
http://www.opendental.com

rhaber123
Posts: 415
Joined: Fri Dec 11, 2009 12:09 pm

Re: Phone number in International format

Post by rhaber123 » Tue Sep 21, 2021 8:46 am

Hi Jordan,

Some international users need to have their country code added when sending text messages.
For text messaging purposes, Is there a place where we can add the country code for all patients phone numbers , in one time, in Open Dental?

Thank you

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Phone number in International format

Post by jordansparks » Thu Sep 23, 2021 6:28 pm

I don't know the answer to that question. I'm not involved with texting.
Jordan Sparks, DMD
http://www.opendental.com

awadh11
Posts: 9
Joined: Tue Sep 21, 2021 12:47 am

Re: Phone number in International format

Post by awadh11 » Mon Sep 27, 2021 12:44 am

Hi Jordan,
Thank you for responding to my question.

The timezone on My computer is set to "(UTC+10:00) Canberra, Melbourne, sydney".
I changed it using Setting->Time & Language->Time zone
and region is set to Australia and Region Format is set to English (Australia). So it is not USA.

BTW: I did not mention it in my previous post, but it is hapening when I generate statement.
Which screen should i delete the parenthesis in?
I have written phone number in "Edit Clinic" screen and there is no parenthesis there.

Awadh

awadh11
Posts: 9
Joined: Tue Sep 21, 2021 12:47 am

Re: Phone number in International format

Post by awadh11 » Wed Sep 29, 2021 1:33 am

Hi Jordan,
I found the problem (I THINK!!!! but not sure)......
It seems that the code formats phone if condition below is true.

if(PrefC.GetString(PrefName.PracticePhone).Length==10){
field.FieldValue+="("+PrefC.GetString(PrefName.PracticePhone).Substring(0,3)+")"+PrefC.GetString(PrefName.PracticePhone).Substring(3,3)+"-
"+PrefC.GetString(PrefName.PracticePhone).Substring(6)+"\r\n";
}
Most of the places in the solution the code also checks if CultureInfo.CurrentCulture.Name=="en-US" is true.
i.e.
if(CultureInfo.CurrentCulture.Name=="en-US" && phone.Length==10)

But the code does not check for this condition (CultureInfo.CurrentCulture.Name=="en-US") in files sheetFilter.cs and FormRpStatement.cs.

The formatting code also exist in file FormCCDPrint.cs, but the code is so complex, it is way beyond my capability to understand.

Awadh

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Phone number in International format

Post by jordansparks » Wed Sep 29, 2021 6:10 pm

Ah, I would call that a bug. Good find. One of our engineers will notice this post and add it to the bug list.
Jordan Sparks, DMD
http://www.opendental.com

joes
Posts: 239
Joined: Tue Aug 13, 2019 12:41 pm

Re: Phone number in International format

Post by joes » Thu Sep 30, 2021 11:54 am

I added this bug to our list. I'll update this forum when a fix has been released.
Joe Sullivan
Open Dental Software
http://www.opendental.com

jasony
Posts: 14
Joined: Wed Feb 24, 2021 4:03 pm

Re: Phone number in International format

Post by jasony » Mon Oct 04, 2021 3:06 pm

Hello awadh11, the phone number formatting should not apply to statements starting in 21.2.41.0;21.3.16.0 when released. Please let me know if it still occurs after updating to one of these versions or later.

jasony
Posts: 14
Joined: Wed Feb 24, 2021 4:03 pm

Re: Phone number in International format

Post by jasony » Mon Oct 04, 2021 3:09 pm

rhaber123 wrote:
Tue Sep 21, 2021 8:46 am
Hi Jordan,

Some international users need to have their country code added when sending text messages.
For text messaging purposes, Is there a place where we can add the country code for all patients phone numbers , in one time, in Open Dental?

Thank you
Hello rhaber123, we do not have a tool in text messaging that would do this. Please submit a feature request if you'd like this.

Post Reply