Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Sharepoint designer us phone number validation

  Asked By: Harshita    Date: Nov 30    Category: Sharepoint    Views: 4598

I have modified the new form.aspx for a list using sharepoint designer and
added a custom control with a text box and added a asp.net expression validator
which should validate us phone number. It does not work but when i change the
validation expression to an email it works fine.



5 Answers Found

Answer #1    Answered By: Akshara Sanghavi     Answered On: Nov 30

I'm not sure I know the answer, particularly without seeing the code.

Does it throw an error, or is there some odd unexpected behavior, or does it
just not validate?

Answer #2    Answered By: Aishwarya Dixit     Answered On: Nov 30

I have not used any code. I have folled this article which shows how to do it
for a email  id but does not work  for a US Phone number.


Answer #3    Answered By: Indrajeet Patil     Answered On: Nov 30

What does your regular expression  look like? I would guess that the problem
lies there.

Answer #4    Answered By: Xavier Hopkins     Answered On: Nov 30

If you click on the ValidationExpression field of the
RegularExpressionValidator, you should get a drop down pick list  which
allows you to validate  a US number. The displayed regular expression  is
((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}

Answer #5    Answered By: Viviana Rollins     Answered On: Nov 30

why dont you try using javascript on that page?

Didn't find what you were looking for? Find more on Sharepoint designer us phone number validation Or get search suggestion and latest updates.