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

if dropdown equals text then do something

Hello i am trying to do one simple thing. When is dropdown = "text1" then restrict max number to 25. But i dont know how to do it.
What i did is i have field and selected onChange where i put 

 

 

If(DataCardValue36.SelectedItems.Value = "text1", 25) 

 

 

I know its not to restrict number to max 25. But it gaves me error on "=" and on",". I think its just simple if and i dont know what i am doing wrong,

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

@jurajjakubov 

 

In case you are working with single selection in combobox control, can you update the expression to:

If(DataCardValue36.Selected.Value = "text1", 25) 

In case you have allowed multiple selections, then update the expression to:

If("text1" in DataCardValue36.SelectedItems.Value, 25) 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS! 

View solution in original post

1 REPLY 1
Dual Super User II
Dual Super User II

@jurajjakubov 

 

In case you are working with single selection in combobox control, can you update the expression to:

If(DataCardValue36.Selected.Value = "text1", 25) 

In case you have allowed multiple selections, then update the expression to:

If("text1" in DataCardValue36.SelectedItems.Value, 25) 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS! 

View solution in original post

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.

Top Solution Authors
Top Kudoed Authors
Users online (47,530)