header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image

CMS: Adding and Setting Up a Ratings Input Element

7 min
In this article
  • Step 1 | Add and set up the ratings input element
  • Step 2 | Connect the ratings input to the CMS
  • FAQs
Adding a ratings input element to your site allows visitors to rate content, products, or services, and submit their ratings directly to your CMS (Content Management System) collection. This can provide valuable feedback and enhance user engagement. 
Screenshot of the ratings input element in the Wix Editor.
Before you begin:

Step 1 | Add and set up the ratings input element

Add the ratings input element to your page and customize its settings, layout, and design.
Wix Editor
Studio Editor
  1. Click Add Elements on the left side of the editor.
  2. Click Input.
  3. Click Ratings.
  4. Click and drag the Ratings Input element of your choice onto the page. 
Screenshot of adding the Ratings input element in the Wix Editor.
  1. Set up the ratings: 
    1. Click Set Up Ratings on the ratings input element.
    2. Enter the Field title that will display in the element. 
    3. Click the Show hover text toggle to choose whether to show hover text or not:
      • Enabled: Display explanations for each rating option when visitors hover over the ratings. Enter the text in each rating field.
      • Disabled: Explanations do not appear when visitors hover over the ratings. Click Accessible names and enter explanations for each rating that helps screen readers and assistive technology understand what each rating represents.
    4. Select the Required checkbox if you want to make it mandatory that visitors select a rating before they can submit it as part of a custom form
  2. Click the Layout icon  to customize the location of the field title and rating value. You can also set the title alignment and padding, the spacing and icon size, and the text direction.
  3. Click the Design icon  to choose a preset design. Then click Customize Design to adjust the design further. 

Step 2 | Connect the ratings input to the CMS

Connect the ratings input element to a dataset that links to your CMS collection, allowing you to store and manage the ratings submitted by visitors.
Wix Editor
Studio Editor
  1. In your editor, click the ratings input element. 
  2. Click the Connect to CMS icon  .
  3. Click the Choose a dataset drop-down and select a dataset that connects to the collection where you will store the submissions. Alternatively, select Add a Dataset, then choose the collection you want to connect, give the dataset a name and click Create.
  4. Click the Rating value connects to drop-down and choose the number field that the ratings input will submit to.
    Tip: Select Add new field to add a new collection field for storing the submissions. Then enter the field name and field key (Velo only) and click Add
Screenshot of adding a new field for the ratings input element to submit to.
  1. Set the dataset mode and collection permissions: 
  2. Click Dataset Settings in the panel on the right.
  3. (Optional) Click the permission type next to Permissions to determine who can view, add, update, or delete collection content.
  4. Click the Dataset mode drop-down and select the relevant option:  
    • Write: Connected input elements can add new items to the collection, but cannot edit existing items. 
    • Read & Write: Connected elements can update existing items in the collection. If you connect a 'New' button, visitors can use it to update existing items and add new items to your collection. 
  5. Create a submit button that visitors click to submit their ratings.
Screenshot of adding and connecting a Submit button.

FAQs

Click a question below to learn more about the ratings input element.