I am working with a SharePoint list that contains information about new employees. One column represents the StartDate, another column the EndDate (according the contract).
In my company we have two kinds of identification card, one is for employees that will stay maximum 30 days (visitor pass) and another one is for employees who will stay longer (permanent ID).
In this SharePoint list I want the field ID type
to be filled automatically. I tried to add this code in the formula section of ID Type
(after you click on edit column):
IF((DATEDIF([StartDate],[EndDate],"D")>30; [ID Type] = "permanent ID"; [ID Type] = "visitor pass")
Unfortunately, the SharePoint list does not save this formula.