I’m creating a workout app that has daily challenges—30 min of Wellness, and 30 min of Exercise. I want to display the days of the month in a calendar view, with each day conditionally showing “Both”, “Wellness Only”, “Exercise Only”, or “Neither”. These days will be accrued into a total per month/challenge.
My issue is that there doesn’t seem to be a way to trigger an event by clicking into a single day on the calendar. Which is fine, I got around it by having every single day be a row in a table, and am planning to use conditionals to trigger a “successful” or a “missed” day.
My question is, what is a good way to tie these conditional yes/no/50% days to a user’s profile? I have a table housing one workout per line, which ties to the user profile by email, and I’m assuming this should be enough data to create this interaction?
You can trigger a form when users click a date on the calendar with an “item click”, I believe.
If row count is not that big of a problem to you, you can allow them to submit records for each day and mark the record with “Both”, “Wellness Only”, “Exercise Only”, or “Neither”.
I haven’t been able to find a trigger for clicking just the date item on the calendar itself. I can trigger it if I select an entry that has been added to that day, but otherwise it just changes the view to “Day” without throwing any hooks that I can see. Am I missing a setting?