Star Rating Component for Flow Screens

Star Rating Component for Flow Screens

Screen flow is the only flow type that supports the screen element. You can use a screen element to get input from the users. Screen flow contains many standard input components. However, in some cases, they may not be enough for your needs. In those cases, you can build or install Lightning components for flow screens. If you are building a survey or a feedback form, you can use number or selection input components to get a rating from the user. Even though they will store the answer, they won’t look like the surveys that we are familiar with. However, you can use this custom Star Rating Component that lets the users select a star and stores the number of selected stars.

Star Rating Component

How to Use

Add the StarRatingComponent to the screen and give it a name.

Star Rating Component input variables.

There are 3 input parameters that you can provide to the component.

  • Maximum Number of Stars
    This is the number of stars that the component will display to the user. It is required to enter a value.
  • Read Only
    This is a boolean parameter to make the component read only. By default, the value is false. However, you can enter {!$GlobalConstant.True} to make it read only.
  • Value
    This parameter stores the number of selected stars. If you provide a value as an input, Star Rating Component displays it as the default number of selected stars.

At the end, Value parameter stores the selected number of stars as an output.


Read this post to see a customer satisfaction survey built with the Star Rating Component.


Use this link to install the component in a production or developer edition environment.

Use this link to install the component in a sandbox environment.

Do you want to try the component before installing it? You can use this link to test the component!

Star Rating Component in action


1 Trackback / Pingback

  1. Using Screen Flow to Create a Public Survey - Salesforce Time

Leave a Reply

Your email address will not be published.