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
Solved! Go to Solution.
Hi @NathanB ,\
Something like this?
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.
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?
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.
User | Count |
---|---|
239 | |
114 | |
94 | |
58 | |
32 |
User | Count |
---|---|
286 | |
133 | |
106 | |
63 | |
57 |