Jump to content
Server Maintenance This Week. ×

Problem with Phone Number CF


This topic is 6567 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm using this calc for my Phone Number custom function. I got this either off this site or CC support forum. Everytime I enter a number I get an error message. I then re-input the same number and it works fine.

Case

(IsEmpty ( Phone Number );" ";

Length(Phone Number) = 7;Left(Phone Number;3) & "-" & Right(Phone Number;4);

(Length(Phone Number) = 10); "(" & Left(Phone Number;3) & ") " & Middle(Phone Number; 4; 3) & "-" & Right(Phone Number;4);

"Wrong number format")

Can anyone tell me what's wrong?

Thanks,

Al

Edited by Guest
Link to comment
Share on other sites

I just tested this as a calculation and it works (it should work then as a CF)

is your field TEXT result, and is it big enough to show the results. (i.e. if you see a ? in there, then it needs to be widen.

HTH

Lee

Link to comment
Share on other sites

  • 2 months later...

Your field should be a text field (or anything thats not a calc or summary) with auto enter calculation checked (with your custom function calc in here) and do not replace contents unchecked.

Link to comment
Share on other sites

This topic is 6567 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.