cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Best approach using icon in a gallery

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

3 REPLIES 3
Super User III
Super User III

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.

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.

 

 

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.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (12,382)