cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WaseemH
Frequent Visitor

formula into text label

Hi,

 

i'm trying to get this formula into text label but getting the same issue (invalid arguments type):

 

If(Dropdown5.SelectedText="Option1","xxxx","yyyy")

 

If(Dropdown5.Text="AL Ain Service","xxxx","yyyy")

 

Any help?

1 ACCEPTED SOLUTION

Accepted Solutions
JR-BejeweledOne
Super User
Super User

Try this:

 

If("Option1" in Dropdown5.Selected.Text, "xxxx", "yyyy")



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

View solution in original post

2 REPLIES 2
JR-BejeweledOne
Super User
Super User

Try this:

 

If("Option1" in Dropdown5.Selected.Text, "xxxx", "yyyy")



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

View solution in original post

RandyHayes
Super User III
Super User III

@WaseemH 

The property of the Dropdown selected property is completely dependent on the Items property of the dropdown.

Depending on that formula, you will need to adjust accordingly.

If(Dropdown5.Selected.Value = "Option1","xxxx","yyyy")

Notice the "Value" in the above.  This is the *most* common, but again would be completely dependent on the Items property.

If this does not solve the issue, then post your Items property.

 

I hope this is helpful for you.

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (30,438)