Help Center How to collect reviews from your users | Help Center
Watch this step-by-step guide to understand how to collect and view your visitors' reviews. Configure a valuation view item to view the actual averages valuation and the overall number of valuations. In a drop-down menu, you then enter your visitor's rating, compute the new averages rating and the overall number of scores, and then refresh the collections and item Rating Screen with the new scores.
We use a drop-down menu to record the scores. Insert 2 new number boxes, one for the mean rating and the other for the overall number of scores. It is possible to either omit these boxes or enter an initial averaging score and the number of scores. Keep in mind that the mean rating must be between 1 and 5.
An evaluation display tag associated with the new number boxes in your library. Dropdown menu that allows your users to select a rating for the article. This first part shows you how to attach the eventhandler to the dropdown list box. We have used the events "onChange" in our coding so that the rating is stored when our user selects from the drop-down menu.
Choose your drop-down menu. "getCurrentItem () ; moyenne = moyenne = moyenne = courantItem. moyenneRating ; nombreRatings ; valeur'#dropdown1' ) ; ) ; ) ; ) ; ) ; : newAverage,'numRatings' } ; #myDataset'moyenneRating <font color=#38B0DE>-==- Proudly Present Take a look at your page in the preview and test the dropdown menu. See how the scores indicator refreshes when you are adding a score.
Ensure that the drop-down menu is then write-protected. Return to the Content Manager to see how the mean rating and overall number of reviews for this article in your library have been refreshed. First, we get the actual element from the record. Then, we specify a variable named Averages and Counts and adjust their value to the actual mean value and the overall value of the element.
"#myDataset " ). getCurrentItem(); average = currentItem. averageRating; count=currentItem. numberRatings; We defined a tag named #myDataset and put its value as the user's choice in the drop-down menu. Enter strings and we need the value as a number to be able to use it to determine the actual mean value, so we use the default script feature Number to do this.
value ); next, we will compute the actual mean value and store it in a tag named newsAverage. Now we store the new averages rating and the number of scores in the actual one. <font color="#ffff00">-==- proudly presents Finally, we make the drop-down box read-only so that your visitors can't re-evaluate the article.
Please be aware that if your visitors update the page or return to the page later, they will be able to rate it again.