UI Design for a ratings use case

Need a ratings capture screen - 1-5 stars.
On hover over a star, the color should change for the stars. For ex, if he is on the 3 start, color of 1-3 should change.
On click of the particular star, rating should get saved in the table. For example when I select rating 4, 4 stars should change color and rating 4 should get saved to the table.

Not sure if Hover over is possible. All creative ideas welcome.

Ex: callmenick.com/.../

OriginalPostID-254165

  Discussion posts and replies are publicly visible

Parents
  • Hi

    I think it is not possible to achive mouse hover, but you can do it by onclick. use a!dynamicLink()
    in a!documentImage() to save the value of selected star value in to some rule input or local variable.
    if that rule input or local variable is not null then display different colors of stars based on the selected value.
    Here you need to use two different colors of stars

    a!imageField(
    image:{
    applycomponent(
    a!documentImage(
    Document: /*red or wight based on codition*/,
    link: a!dynamicLink(
    value: _
    saveInto: local!selectedStar
    )
    ),
    enumerate(5)+1
    )
    }
    )
Reply
  • Hi

    I think it is not possible to achive mouse hover, but you can do it by onclick. use a!dynamicLink()
    in a!documentImage() to save the value of selected star value in to some rule input or local variable.
    if that rule input or local variable is not null then display different colors of stars based on the selected value.
    Here you need to use two different colors of stars

    a!imageField(
    image:{
    applycomponent(
    a!documentImage(
    Document: /*red or wight based on codition*/,
    link: a!dynamicLink(
    value: _
    saveInto: local!selectedStar
    )
    ),
    enumerate(5)+1
    )
    }
    )
Children
No Data