PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Phone not validated for numbers

  1. Hi I want to use the Phone field to allow a user to type in their phone number. I am in the UK so I have to use the international type but it allows the user to type in letters.
    Can this be changed so it checks for numbers?

    Posted 14 years ago on Thursday March 18, 2010 | Permalink
  2. Currently the phone field allows letters because in some countries letters represent numbers. Ex. 823-CALL-ME. So currently this isn't possible, although we may enhance it in the future with an option to force numerals only.

    Posted 14 years ago on Thursday March 18, 2010 | Permalink
  3. Lee Hord
    Member

    It would be great to limit inputs to only accept numerals. For now at least I can accomplish this with jQuery:

    jQuery(document).ready(function($) {
    	$("#input_id").keydown(function(event) {
    		if ( event.keyCode == 46 || event.keyCode == 8 ) {
    		}
    		else {
    			if (event.keyCode < 48 || event.keyCode > 57 ) {
    				event.preventDefault();
    			}
    		}
    	});
    });
    Posted 14 years ago on Thursday March 18, 2010 | Permalink
  4. the option would be great for now ill use the number field

    Posted 14 years ago on Friday March 19, 2010 | Permalink
  5. Here is a solution

    I hope they will implement it, since it's almost just a c/p job ;)

    Posted 11 years ago on Monday November 12, 2012 | Permalink

This topic has been resolved and has been closed to new replies.