Skip to main content
kavyan471063
Known Participant
September 27, 2021
Question

Giving list of inputs creates error

  • September 27, 2021
  • 8 replies
  • 0 views

Hello Guys,

I am having a code which will generate a rating icon based on the input integer. So far its working fine, When I try to make the input as a array by click on the checkbox and gave 2 more input rating there shows an error.

The first picture is the error one and the second one is the rating output when it is given a single input value, Thanks in Advance.

    8 replies

    stefanhelzle0001
    Brainy
    September 27, 2021

    When you pass a list into your code in line 8, it creates a list. Putting a list into an if(), creates multiple outputs. a!richtextIcon does not understand multiple items.

    kavyan471063
    Known Participant
    September 27, 2021

    Any suggestions to solve this?

    Could you please help me.

    stefanhelzle0001
    Brainy
    September 27, 2021

    Depends on what you want to achieve. If you want to show multiple star-ratings and have a richtextfield for each, then wrap the field into a foreach iterating on the rule input.