How to enforce to input value from another column?
-
08-02-2021 - |
Question
I've created 3 columns:
- Choice:
- Banana
- Apple
- Orange
2.Start date
3.End date
If you select "banana", then he/she must input value for "start date" and "end date".
I tried to input the formula below at start date but it doesn't work.
=if([Choice]="Banana",[Start date]=today(),true, false)
Could anyone out there help me?
La solution
Try below formula:
=IF([Choice]="Banana",IF(OR(ISBLANK([Start date]),ISBLANK(End date)),false,true),true)
This satisfy the condition: If [Choice]
is equal to "Banana" then user cannot leave Start date
or End date
columns blank.
Note:
- 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(,
).
official documentations:
Autres conseils
You could use formula as Ganesh said via List settings->Validation settings->type the formula as below:
=IF([Choice]="Banana",IF(OR(ISBLANK([Start date]),ISBLANK(End date)),false,true),true)
Since the single column validate cannot refer to other column value, we cannot add the formula under certain column.
Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange