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

Show text based on a drop down value, conditional.

I need to show different text based on the drop down value.  For example if someone selects A in the drop down then the text box below displays "you have selected A" , if B then you have selected B" etc

2 ACCEPTED SOLUTIONS

Accepted Solutions

Thanks for your help @WarrenBelz  on this 🙂

I used the below in the end to populate a text field

 

 

If(
DataCardValue2.Selected.Value = "Cyber Security",
"Here is some cyber examples",
DataCardValue2.Selected.Value = "CMAR for Finance",
"CMAR example text!"
)

View solution in original post

@MikeBlairTP ,

If that is in the Tooltip, you can shorten this

Switch(
   Self.Selectd.Value,
    "Cyber Security",
   "Here is some cyber examples",
   "CMAR for Finance",
   "CMAR example text!"
)

 

View solution in original post

9 REPLIES 9
WarrenBelz
Super User
Super User

Hi @MikeBlairTP ,

In a Label Text

"You have selected " & DDName.Selected.xxxx

where xxxx is the valid output of the dropdown (Value/FieldName etc)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

 

This solves perfectly the example I give above, thank you. 
However, I am trying to a block of text when some selects an item from the drop down. The text will change depending on the value of the drop down. 

@MikeBlairTP ,

Can you please give me an example of what needs to show and where you are getting it from.

Thanks, I’m trying to create a tooltip style function like the below. I’ve seen static tooltip using an icon and text when you hover, but mine is dynamic.  

AB8D1D44-9BCA-434D-9905-8DB6B009996F.jpeg

@MikeBlairTP ,

Where are you getting the "tooltip" value that matches "Cyber Security" from? Also you can have dynamic tooltips on a control like a combo box, but they will only react once you have selected an item, not in the drop-down list as you have illustrated.

MikeBlairTP
Helper III
Helper III

Reacting once selected should do. I can always add some text to say click to see examples. Are dynamic tooltips straight forward to setup?

@MikeBlairTP <

You just need a list of selected items and their corresponding tool tips, then lookup that list.

Thanks for your help @WarrenBelz  on this 🙂

I used the below in the end to populate a text field

 

 

If(
DataCardValue2.Selected.Value = "Cyber Security",
"Here is some cyber examples",
DataCardValue2.Selected.Value = "CMAR for Finance",
"CMAR example text!"
)

@MikeBlairTP ,

If that is in the Tooltip, you can shorten this

Switch(
   Self.Selectd.Value,
    "Cyber Security",
   "Here is some cyber examples",
   "CMAR for Finance",
   "CMAR example text!"
)

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,637)