Hello Everybody,
I'm trying to right some code that only lets the user fill in a form once each week. Once the form is submitted to SP the button will be disabled until the next working week.
Each button is associated with a different business area, The function is looking up for a match on the list of the business area and the week number to match the current week, that that is true the button is disabled, if false the button is enabled.
I'm getting no errors in my code yet its not working, the button remains disabled even when the week numbers do not match.
Can anybody spot what I've missed here and help me understand how to correct it?
Thank you
If(
LookUp(
ScoreSheetCollection,
Title = "Business Area" && Value("WeekNumber") = ISOWeekNum(Today()),
true),
DisplayMode. Disabled,
DisplayMode. Edit
)