Question:
I have a website (Wix Studio) where users/members are inputting their name, checking a box for whether they worked out, checking a box for whether they drank a gallon of water and then uploading a photo of them at the gym. Users/members receive one point for each workout and each gallon of water drank, allowing a maximum gain of 2 points per day. The data is stored in the CMS as a Boolean field. My question is what is the code to be able to display the number of points each user has earned? I am thinking it would look best in a table format. That way each user is listed with their relevant points. I was looking at the article for the ratings display (Capturing and Displaying Ratings) but that requires a number field in the CMS and I have a boolean field.
I also checked out this thread (How to count the numbers of your database (display on site) - #7 by debugslife) but I’m not sure how to query for boolean fields instead of numbers/text.
I would love if it could also rank the users/members in descending order of points.
Thanks in advance!!
EDIT: Wondering now if I can use a sum() formula…looking into this method