SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a list. I want add a column for list with this format :


How to set this Validate for column?

i use this link , but don't work for me.

share|improve this question
Do you want to use this format for display only or enforce for input as well? – Ryan May 21 '12 at 10:25
I want use for input :) – ar.gorgin May 22 '12 at 3:38
up vote 3 down vote accepted

You've got a few options.

1) JavaScript validation on form as shown in the link in your question.

It DOES work if done correctly and is probably the quickest way do this.

  • Pro - Quick and easy and allows you to provide immediate feedback to user in OnBlur event.

  • Cons - limited in what you can do (e.g. can't run server side code to check against another list) and easy to 'get around' e.g. via the DataSheet view.

2) A custom column that applies regular expression validation.

You can use/adapt one of these open source projects

3) Write your own custom column.

More complex - but allows you to combine server side and client side validation.

share|improve this answer
Thanks a lot :) – ar.gorgin May 23 '12 at 5:31
And its not even worth an upvote? Sheesh, tough crowd! ;) – Ryan May 23 '12 at 8:11

Though not as easy or powerful as regular expressions, standard Column Validation can use a rich selection of Excel-like string functions. For example...


Some more complex examples are described at

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.