Hi Everyone
I need help with a particular piece of functionality which is stalling my progress!
Here is my scenario for a Accident Reporting App:
- I have a picture of a body, with multiple buttons overlaid
- Each button represents a body part, e.g. Head, Hand, Foot etc
- I have a separate Combobox which contains a list of all potential body parts, which permits multi selection
- I have a Text Label which then takes all selections and displays them with separators using the following formula in the TEXT property:
Concat(ComboBox.SelectedItems,Value & ";")
- So when I select HEAD and HAND from the combobox, I get the Text string "Head;Hand" in the label
- I now want the button FILL to change to Red from Transparent when the item has been selected. A similar formula for a simple Dropdown with a single selection for "Head" would be:
If(TextLabel.Text = "Head",Red,Transparent)
How can I check the text label for any part of a defined string, so for the head fill, I would be looking at TextLabel.Text for "Head;" anywhere in the string
My next challenge will then be working out how to then hide the Combobox and update the selection from the button press using a variable, but one step at a time I hope!
Any help would be appreciated!!
Amazing, super simple when you know how! Thanks for your help @Anonymous !
Hello @HendosMark ,
Please have a look at the Find Function
Use this function for your Label fill : If(!IsBlank(Find("Head",TextLabel.Text)),Red,RGBA(0, 0, 0, 0))
Hope this helps!
WarrenBelz
83
Most Valuable Professional
MS.Ragavendar
54
mmbr1606
41
Super User 2025 Season 1