Announcements
I would like to have a thumbs up indicator in my gallery which appears when the item's "Modified" date in the SP list is less than 1 year.
I know I need to put some type of function into the Visible property but I am too much of a noob to know where to start.
HiYou can use the DateDiff formula
Icon.Visible = DateDiff( Now(), ThisItem.[Modified column], TimeUnit.Months ) < 12
Regards,
Hi @QuentinDURIEZ
Where would I enter this formula, I have added it into the Visible value on the Icon and I am getting an error
In the visible property of the icon.What type of error do you have ?
[Modified column] should be replaced by the actual name of your column.
Hi @QuentinDURIEZ the error is saying Incompatible types for comparison. It say the formula cannot be evaluated because the values are not the same type.
Are you using the standard Modified column from SharePoint ?
Icon.Visible = DateDiff( Today(), ThisItem.[Modified column], TimeUnit.Months ) < 12
If yes, try by replacing Now() with Today()Regards,
Hi @QuentinDURIEZ , yes I am utilising the standard column and which has the column ID as Modified and this is my formula in the Visible field
Remove the brackets, that's was part of the placeholder
DateDiff( Today(), ThisItem.Modified, TimeUnit.Months ) < 12
Hi @QuentinDURIEZ Thanks, this has removed the red line from all of the formula apart from underneath .Visible=
Don't consider "Icon.Visible=", that's just a way for me to tell you where to put the formulaTo be clear, the Visible property of your Icon needs to be
Sorry if my notation disturb you !Regards,
Thank you. It's not your notation, it's me being a noob really. I should have twigged that it should be that. 🤦♂️
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 248 Super User 2026 Season 2
WarrenBelz 192 Most Valuable Professional
Mohsin Ali 135