驗證列在SharePoint 2010

大部分的開發商面臨的問題與列驗證在SharePoint 2003/2007.

這實在是痛苦的寫驗證使用自定義方式如JavaScript或jQuery.

的SharePoint 2010 在下面的驗證提供開箱即用.

  • 列級驗證
  • 名單級驗證

列級驗證

在創建新的列清單, 單擊列驗證節點.

指定您的驗證公式.

克.

[字段名]=”價值”

公式應該返回TRUE審定 PASS.

創建新的列清單,並指定驗證設置.


創建新項目名單, 單擊保存以驗證.

哇...。生活很容易與 SharePoint.

國家在收聽聽到名單級驗證在我的下一個職位.

8 意見欄驗證在SharePoint 2010

  • […] 在我以前的文章, 我寫了有關列級驗證在SharePoint 2010. […]

  • veenar

    我們可以比較多 2 conditons如;
    如果TextBox值可以是 “紐約” 或 “華盛頓” 那麼如何公式必須.

  • 好東西.

    我需要檢查它的電子郵件驗證. 能否請您對這個建議我 ?

    謝謝,
    饒.

  • SPsidd

    我試圖用一個單行文本字段柱驗證,以允許用戶只需鍵入文本入列. 問題是,我無法弄清楚如何讓多個項目入列.

    我有一個驗證公式,可以讓用戶輸入一個值,如 “的TR - 12345” 但我該如何調整下面的公式,讓用戶輸入類似 “的TR - 12345; 訓練班 - 23456; 訓練班 - 34567” 以及? 需要允許用戶輸入最多 20 另值. 我現有的計算公式如下. 請 suggesst我應該做怎樣的改變來實現我的目標.

    =如果(萊恩([4M_Delete類型])<8,
    假,
    中頻(萊恩([4M_Delete類型])= 8,
    中頻(左([4M_Delete類型],3)=“的TR -”,
    中頻(ISNUMBER(價值(權([4M_Delete類型],5))),
    中頻(萊恩(權([4M_Delete類型],5)= 5),
    真,
    假),
    假),
    假),
    假))

  • ccyborg

    這個公式是一種不考慮由SharePoint 2010 :

    =和(TRIM([BadgeOwnerFullName])=””,TRIM([BadgeOwnerAccount])=””)

    傷害…

  • Zayno

    je veux mettre un text en majuscules mais j’arrive pa à le faire avec les formules de validation

  • Colin Phelps

    Does this mean that =AND cannot be used on Column Validation? If so, how does one do data validation on more than one condition?

    My case is that I have a field called WinChance that is a percentage in a custom list tracking projects and their likelihood to proceed. I am trying to ensure that if the column called ProjectStatus is set to “Won” that the WinChance field is set to 100%.

    I thought that a formula in the Column Validation for the WinChance column of =AND([ProjectStatus]=”Won”,[WinChance]<100 would have achieved this. However I get an error message of

    "The formula cannot refer to another column. Check the formula for spelling mistakes or change the column to this column."

    In my research I see (I believe) plenty of examples where validation is done between different columns. Or am I going crazy?

  • Ron

    Is there a way to create a Field validation that would require a length of 6 where the first 2 must be Letters the next 3 must be numbers and the last could be either

給一個答复

你可以使用 這些 HTML標籤

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>