Any help would be highly appreciated.
I tried the exact same way as shown in the Wix tutorial (https://support.wix.com/en/article/wix-code-tutorial-capturing-and-displaying-ratings) with the same field and input ID but I am not able to capture the ratings. I am getting an error and not able to capture the ratings and display it on the site. I have got errors in the Developer Console saying "Script Error", so the coding doesn't work but the code written has no errors.
My database collection's name is "websitereviews" which has 3 number fields with avg, numRatings, totalRatings as the field ID as shown in the tutorial.
Could anyone please help me solve this problem. I have attached the snapshots of the errors and code.