cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
yashag2255
Dual Super User II
Dual Super User II

@Anonymous 

 

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
yashag2255
Dual Super User II
Dual Super User II

@Anonymous 

 

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

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

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

Top Solution Authors
Top Kudoed Authors
Users online (38,598)