I am working on something that seems easy. My app is used to help people with attendance and will offer zoom links to certain things based on a date. I want the attendance to show everything but the zoom link but am having a problem making that link conditionally hidden based on date.
2 things:
I see that I can add dates but not subtract days. I want the link to appear 2 days before the date of the current cells object.
It is evaluating out to a date and not a yes/no, well lol, obviously, but, is there any other way to do this? I was thinking of just not showing it on page load and when the condition is true showing it, but I am not sure if it will stay showing after that. just looked again after writing this post and realized that if i did a workflow to it, it might hide the zoom link entirely as it is set in a repeating group. That idea is out of the window lol.
Keep in mind: In expression fields, we can only do math on the left hand side of the expression. That’s why the expression is a lil’ wonky looking. We’d love to write:
Current Date/Time > Thing’s WhateverDate +(days) -2
… which reads much more naturally as “now is after (the point in time that is) two days before WhateverDate”, right?
But unfortunately we cannot. Because once we write “Current Date/Time > Thing’s Whatever Date” the expression field says, “AH, OK that’s a boolean! We done up in here!” This is literally, actually why we cannot continue and put a date type :operator on WhateverDate, like “+(days)”. What we are writing is no longer a date type expression.
Thankfully, as you can see, you can just jot down (in a text editor or notepad or just in your head) the expression the way we wish we could write it, and just flip it around.