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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

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

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (32,022)