Phone number validation

  • mikemonk2004
  • mikemonk2004's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Karma: 1
  • Thank you received: 0

mikemonk2004 created the topic: Phone number validation

I apologize if this has been asked, but I couldn't find anything in a forum search.

Is there a way to validate a phone number? I have been doing the ff_valuenotempty, but it will accept anything someone puts there. Is there a way to see if its a number?

I think the easiest way would be to check that it is the appropriate number of digits, with no spaces, but I understand the integer validation only checks to see if its an integer, not one of a specific length.

Any thoughts?
  • Posts: 509
  • Karma: 8
  • Thank you received: 9

terrywmu replied the topic: Re: Phone number validation

Hi Mikemonk2004,

This article should help you:

If you need further information, let me know.


BreezingForms Customer Care
  • Posts: 4
  • Thank you received: 0

jared replied the topic: Phone number validation


I am wondering if this has changed in the last 4 years? I placed the code in my form but the form won't submit. I am using the latest version.

  • Posts: 15273
  • Karma: 287
  • Thank you received: 1074

pedro81 replied the topic: Phone number validation

Hello Jared,

the code should works. If doesnt submit, please, send us your form into a package and we will take a loot at your phone number validation. Attach the package here as a zip file please.

=========================================Need to renew Pro Support?
Buy Here!
Consider a membership!
Like us on Facebook
Follow us on Twitter
  • Posts: 7
  • Thank you received: 0

guitrldy replied the topic: Phone number validation - won't submit

Hello! I know this is an old topic but I'm having the same issue: form won't submit after adding validation code.

Using the SampleQuickModeContactForm , I've added a phone element.
I've added the following custom code to validate a 10-digit phone number:
function ff_telephone_validation(element, message)
     if(!isNaN(element.value) && element.value.length == 10)
          return '';
     return 'Please enter a valid number (exactly 10 digits)';
} // ff_telephone_validation

This is the only change I've made to this sample form.

When this code is added, my form will not submit.
If I delete this code, it will submit.

Can you pls tell me how you resolved this issue with the original poster?
Lisa W.
Moderators: ForumSupporttomeperica
Time to create page: 0.116 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here