Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
3569 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
UI Design for a ratings use case
siddharths
over 8 years ago
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
0
ChristineH
Certified Lead Developer
over 8 years ago
In the solution I have where this applies, I presented the user with radio buttons of the stars (1-5, with some empty and some filled). Don't believe hover to change color is available.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rajasekhar Pamidipati
A Score Level 2
over 8 years ago
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
)
}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
monikar
over 8 years ago
Hi
In a similar use case, I've once used milestoneField as an alternative.
a!milestoneField(
steps: {"poor", "average", "good", "very good", "Excellent" },
links: a!applyComponents(
a!dynamicLink(
label: _,
value: _,
saveInto: ri!rating
),
{merge({"poor", "average", "good", "very good", "Excellent" }, {1,2,3,4,5})}
),
active: if(ri!rating = 5, -1, ri!rating)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
siddharths
over 8 years ago
Thanks everyone for the suggestions. Using the same approach suggested by raja.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel