Skip to main content
kavyan471063
Known Participant
Sep 27, 2021 12:11 PM UTC
Question

Giving list of inputs creates error

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
    Sep 27, 2021 1:23 PM UTC

    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
    Sep 27, 2021 1:46 PM UTC

    Any suggestions to solve this?

    Could you please help me.

    stefanhelzle0001
    Brainy
    Sep 27, 2021 1:49 PM UTC

    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.