/
Input Controls

Input Controls

The Input Controls module adds custom user input controls that are useable in flow studio flows via hooks.

Dependencies

The Input Controls module is dependent on the following modules:

Controls

Star Rating

The star rating control presents a series of stars with optional labels, which when clicked will submit a corresponding number input.

The following is an example of the control when rendered in the chatbot:

The above example was produced with the following nodes in flow studio:

The star rating control is used by invoking the “starRating” hook which takes in the following parameters (see Flow Manager → Execution of Hooks → Parameters for an explanation of how to specify hook parameters)

  • max (number, optional, default: 5): The number of stars to show.

  • minLabel (string, optional): A label to display beneath the lower end of the rating control.

  • maxLabel (string, optional): A label to display beneath the higher end of the rating control.

If only one of the two label parameters is specified, it will be treated as a single label centered beneath the rating control, as shown below:

 

Related content

3.3.9.1 Evaluate Control
3.3.9.1 Evaluate Control
More like this
3.3.2 Editing Flows
3.3.2 Editing Flows
More like this
How to put an image on a button?
How to put an image on a button?
More like this
3.3.1 Adding New Flows
3.3.1 Adding New Flows
More like this
3.3.9.2 Custom Control
3.3.9.2 Custom Control
More like this
3.3.4 Hook Event
3.3.4 Hook Event
More like this