web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Best approach using ic...
Power Apps
Unanswered

Best approach using icon in a gallery

(0) ShareShare
ReportReport
Posted on by 13

I have a situation where a multiple questions are being asked..  I would like them to select one of 3 icons (smiley, neutral, or sad) and then type out what is right or wrong re the question.  I can get the questions displayed in the gallery, with a place to enter an answer.  

 

I struggle getting the icons to behave independently for each question (questions come from sharepoint list)

 

I'm thinking this would be something going on behind the icons, so it only looks like the icons are changing, but not sure.

 

Pretty new to PowerApps, so there might be a really simple solution I just don't know

 

thanks for the help

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,024 Most Valuable Professional on at

    Hi @NathanB ,

    Icons have an Icon property which is the name of the icon. You can set these based on the a gallery row item.

    If(ThisItem.xxxx=yyyy, Icon1Name, Icon2Name)

    is this what you are asking?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • NathanB Profile Picture
    13 on at

    That is a differntt way to do it.. and I will try it to see if it functions ok for what I'm doing...   

     

    to be more specific here is a scenario

     

    Q:  How do you feel       Happy  neutral   sad...      ______________

    I would like to pick one of the three icons... and have it highlight which I could do with fill...  then give detail like "I have to work from home"

     

    The problem I have is if you make a change to an icon like that for one record it doesn't seem to hold for that record.  It changes all of them.   I think I need to link the color of the icon to a field in the gallery but I'm not sure.

     

     

  • Verified answer
    WarrenBelz Profile Picture
    153,024 Most Valuable Professional on at

    Hi @NathanB ,\

    Something like this?

    Emojis.gif

     

     

     

     

     

     

    You may have a different model, but I am sure you can adapt the principle.

    Icon property

    Switch(
     DropdownName.Selected.Value,
     "Sad",
     EmojiSad,
     "OK",
     EmojiNeutral,
     "Happy",
     EmojiSmile,
     "Angry",
     EmojiFrown
    )

    Text label

    Switch(
     DropdownName.Selected.Value,
     "Sad",
     "No job but well",
     "OK",
     "At work but a bit worried",
     "Happy",
     "Working from home",
     "Angry",
     "I got Conona'd"
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard