문제

I need to add a column validation to my list.

The requirement for the validation is that the column [Body] cant be empty if the column [Status] is one of this statuses: "1-Cancelled" or "2-Awaiting Information from Requester".

I tested the below formula in Excel which is working, but not working in the SharePoint.

=NOT(
AND(
OR(
[Status]="1-Cancelled",[Status]="2-Awaiting Information from Requester"), ISBLANK([Body])
))

Please help me to find the right formula. Thanks in advance

도움이 되었습니까?

해결책

Try below formula:

=IF(OR([Status]="1-Cancelled",[Status]="2-Awaiting Information from Requester"),IF(ISBLANK([Body]), false, true), true)

Note:

  1. Sometimes comma(,) does not work in formula (I am not sure but it is based on something language or regional settings on your site). So in that case use semicolon(;) instead of comma(,).

  2. Also note that it is not possible to achieve using validation formulas if [Body] is Multiple lines of text field.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top