Star rating triples up with each click

I wonder over two strange things Colin:

  1. If you put export function ratingsInput1_change(event) { below $w.onReady( function() { you get the text that exports shall be on the top level, with other words over $w.onReady( function() { so shall I put the ratingsinput over $w.onReady( function() { or not?

  2. Wix instructions say that you shall not connect the input element to the database but on another page you get this instructions (very confusing):

Step 2 | Connecting your ratings input element
Connect your ratings input element to collect your users ratings in a database collection.
To connect your input element to a dataset:

  1. Click the ratings input element.

  2. Click the Connect to Data icon.

  3. Click Connect a dataset to choose a dataset from the drop-down list.

  4. Click Rating value connects to :

  • Choose an existing field in your collection.

  • Click Add a new collection field to create a new field in your collection.

  • Enter a field name.

  • Select a field type.