How to capture and display Ratings Input using Wix code?

Hi,

Any help would be highly appreciated.

I tried the exact same way as shown in the Wix tutorial (Velo Tutorial: Capturing and Displaying Ratings | Help Center | Wix.com) 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.

With Regards.

Hi Manisha,
Can you please provide a link to the site where I can look at the code?
Thanks!

I have already deleted the code due to the frustration and delayed support from WiX. The image above shows the exact steps I took.

It would be appreciated if you could help me through the images above for now.

Manisha,

Here is a very simple example of the RatingsInput component:
View the Live demo in a browser page
Open the Example template in the Wix Editor

Note : The RatingsInput component is on the RECIPE Lightbox page.

Thank you Yisrael for your help. I will have a look and get back to you if there is any confusion again.

hi! I’m trying to implement the wix code tutorial: capturing and display ratings. I want visitors to rate my affiliate program. I have search for videos on yourtube and wix but did not really got to understand if I need 1 or two DB collections. and if I need as well 2 DB sets. thanks!