Hi,
I am trying build chat-like screen in powerapp, which contains of form with text input where user enter message (connected to SP list), Send button and Gallery with labels that displays sent messages (so to look like a messenger)
I would like to distinguish these labels with colors depending on user.
For example for user who sends message label will be green and for received messages label will be yellow.
Are there any ways to do so?
Thanks in advance for answers!
Solved! Go to Solution.
Hi @Henry1290 ,
You could use Created By column .
If(ThisItem.'Created By'.Email=User().Email,Green,Yellow)
Best Regards,
Wearsky
Hello,
how do you differentiate between a sender and a receiver, if you have this information then use it in an If statement
Ex.. If( sender , RGBA(green values), RGBA (yellow values))
hope this help,
regards.
Hi @Henry1290 ,
You could use Created By column .
If(ThisItem.'Created By'.Email=User().Email,Green,Yellow)
Best Regards,
Wearsky
User | Count |
---|---|
150 | |
100 | |
89 | |
78 | |
58 |
User | Count |
---|---|
194 | |
186 | |
106 | |
99 | |
91 |