Display Calculated Fields for Ratings-Display

Hi there :slight_smile:

Would someone be willing to offer me some help?

I have a public page that is going to be sent to clients to ask what they think of the brand based on their experience—this collects a star rating (using a ‘Ratings-Input’ element’) and an email address, which are saved to a database.
There is then a private page that is only going to be seen by the Admin and will only display the average rating and total rating of the website using the ‘Ratings Display’ element.

However, I am struggling to find (or write) code that will;
a) Calculate the average and total ratings from the ‘customerRatings’ field,
b) Display this information in the ‘Ratings Display’ element.

I have found Wix demonstrations that allow you to copy and paste code into the page code, but I cannot seem to adjust these to get them to work.

Would someone be able to point me in the right direction?

Kind Regards,
Jayden

Wix do a tutorial for adding ratings and reviews as shown here.
https://support.wix.com/en/article/corvid-tutorial-capturing-and-displaying-ratings

Hi givemeawhiskey

I have already read this tutorial and copy and pasted it, but it does not seem to display the information across two different pages(?)
Is there a way to edit the code so that it fetches the information on load and not when the ‘Ratings Input’ element is clicked?

Kind Regards,
Jayden

@jaydenb155 Hi did you sorted this code,and could you help out of yes?

@bmelida99 Hi Melinda. I did not manage to figure this out, so instead I used a third party app .

Kind Regards,
Jayden