cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper IV
Helper IV

Display image if label text matches condition

Is there a way to display an image if a label contains something that starts with "Out of office" but ending varies? For example "Out of office - half a day" or "Out of office - VC" ?

 

I tried the following on my image's visible property.

If(StartsWith("Out of office", ThisItem.Title), true, false)

 

but that won't this display my image

2 ACCEPTED SOLUTIONS

Accepted Solutions
Super User III
Super User III

In the the Visible property

If(!IsBlank(Find("Out of Office",ThisItem.Title)),true,false))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Super User III
Super User III

@F_Quint 

You have your parameters backward.  

The formula should be:

StartsWith(ThisItem.Title, "Out of office")

 You don't need the If part and true and false as this function returns either true or false already.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

3 REPLIES 3
Super User III
Super User III

In the the Visible property

If(!IsBlank(Find("Out of Office",ThisItem.Title)),true,false))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Super User III
Super User III

@F_Quint 

You have your parameters backward.  

The formula should be:

StartsWith(ThisItem.Title, "Out of office")

 You don't need the If part and true and false as this function returns either true or false already.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

@RandyHayes  This works like a charm. thank you

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

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

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (92,360)