Custom Badges - badge criteria for date events
Hi everyone!
We are creating some new custom badges to improve our gamification and we have found out with an issue. I hope that someone can help us to find a workaround or to report it as a bug.
We want to create a badge with this criteria:
If the user logs into the community on a specified day of the year, the user gains the badge. Examples: pi day, programmers day, Christmas...
To achieve this, the criteria I was using was:
example: cake day badge:
signin_date >= '2021-2-17'
But I can see here a problem because if I go live with this badge, I won't be able to update the formula because live badges are unable to perform this action. So this badge won't be possible to win in 2022.
Looking through the documentation I can't find a solution to match login date by day and month but not for a year.
https://community.khoros.com/t5/Badges/About-badge-rules-and-supported-badge-criteria/ta-p/117227
How can I achieve this action? Do someone has this type of gamification? How did you achieve this?
Thanks
Hi ann_eav,
Badge rules are pretty limited, despite the seemingly large list of options.
We did a badge for Star Wars day (May the Fourth) and used this date formula:
signin_date >= '2020-05-04T00:00:00' AND signin_date < '2020-05-04T23:59:59'If we use the same badge again next year, I'll disable global notifications for a minute and grant the badge to users with a particular role- in this case the role will be for those who got the badge in 2020. Notifications will be disabled briefly so there's no confusion on the "new" award. A new badge for the 2021 date will be created and we'll repeat.
Until there's a better solution, I hope this helps.
-Drew