Hello, I have the following issue:
I want the buttons colorised, depending on a chosen selection.
If a button is selected, the user is able to update a Form.
If (in this case) "Beutel entspricht" = "Ja", then the color on the button on the first page should be green.
This should apply to the selected gallery item only.
Any ideas? Thank you very much in advance.
If(DataCardValue14.Selected.Value = "Ja",Red,Black)
Without the first part of the string, this seems like exactly what I was looking for. Thank you very much for your help! It was a pleasure! 🙂
@LanesMan Just had a second look at your first screenshot and I found the issue.
If I get it right, In the Left side you do have a form and on the right side you do have a gallery. If that is the case your formular will look like this:
If(ThisItem.IsSelected && DataCardValue14.Selected.Value = "Ja",Red,Black)
This should work now.
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.
@LanesMan The Field "Beutel entspricht" seems to be a Choice Field or Yes/No Field. So try this one.
If(ThisItem.IsSelected && ThisItem.'Beutel entspricht'.Value = "Ja",Red,Black)
My first formular had a Typo and I also thought we compare against a Single-Line of Text field.
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.
Thank you for the quick reply. Sadly there seems to be an issue with the equal sign. Power App states, that a record and a text cannot be compared. Also I am not sure, if ThisItem.'Beutel entspricht' is a viable name for the field.
@LanesMan Glad it helped you. If your issue is solved, please close the Topic.
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.
@LanesMan To achieve this, please use this formular on your buttons fill proeprty
If(ThisItem.IsSelected && ThisItem.'Beutel entspricht" = "Ja",Red,Black)
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.
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473