Mobile_NumberFormat = input.Mobile_Number.toString().replaceAll("([0-9]{10})","correct");
if (Mobile_NumberFormat != "correct")
{
alert "Mobile Number Should Be 10 Digits, No Dashes";
cancel submit;
}
I want to do the same thing with the "Office Number", but I don't know how to say if the Office Number is not correct then displace "Office Number Should Be 10 Digits, No Dashes"