This topic is locked

Phone Number Masking

3/17/2008 2:52:22 PM
PHPRunner General questions
P
papersimba author

Phprunner 4.2
I have check look for valid phone number it doesn't seem to care unless what you put it, it likes anything.
Also is there a way to specify how so everything looks the same
I dont want 000.000.0000 or 000-000-0000 or(000) 000-0000
TIA

Lori

J
Jane 3/21/2008

Lori,
you can edit telephone number mask in the generated include/validate.js file manually.

Unfortunately we don't have a ready to go solution for this.

A
asawyer13DevClub member 12/8/2008

Does anyone know of a java based component or routine that could be used and reused for this?

I have quite a few different edit masks I would like to do. It would be great if things like slashes, parens, etc, could be automatically added when the user enters a date or phone number, etc.
Basically I'm looking for something that could be easily added to the .js file that PHPR creates to do this.
Any thoughts?
Alan

J
Jane 12/9/2008

Alan,
to add slashes and dashes on the fly (when user is entering phone number) you need to add custom JavaScript code in HTML mode on the Visual Editor tab directly.

Here is just a sample:

document.forms.editform.value_FieldName.onkeyup = function()

{

//add your code here

}