Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Make a label visible based on a dropdown selection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hello!
 
I am trying to do a simple thing, but I am struggling to achieve it correctly:
 
I have a text input control that is hidden unless an item "Other" is selected in a previous dropdown. The dropdown is set to be for multiple options. It is very simple to make the label visible when "Other" is selected, the issue is that, if various options are selected + other, the hidden control will only appear if other is selected the last
 
Here I attach the example:
 
Germn_0-1713789423124.png

 

Germn_1-1713789461790.png

 

I have tried with these formulas:

 

1. If(Text(productInput.Selected.Value) = "Other", true, false)
2. CountRows(Filter(productInput.SelectedItems, Text(productInput.Selected.Value) = "Other"))>0
3. productInput.Selected.Value in "Other"
 
And they all give me the same result, but don't manage to solve this issue I am having. Any suggestion, please?
 
Categories:
  • Verified answer
    Germán Profile Picture
    Microsoft Employee on at
    Re: Make a label visible based on a dropdown selection

    Hello:

    Sorry for my delay in replying as I have been disconnected for personal reasons. Finally, I could get back to the app and try your suggestion. It didn't exactly work for me as it said "a boolean value is expected" something like that, but it gave me the idea to try something similar but still different and IT WORKED:

     

    If(CountRows(Filter(productInput.SelectedItems,Value = MicrosoftProducts.Other))>0, true, false)

     

    I am accepting your as solution as it may help other person maybe with a different configuration in the column

     

    Thanks a lot for your support! Very appreciated

     

     

     

  • Verified answer
    DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Make a label visible based on a dropdown selection

    Could you try this: 

    If(productInput.Selected.Value = 100000002,'COLUMNNAME (TABLENAME)'.Other,true, false)

    100000002= NumberValue of the Option "Other" (As you know all options will have a Numeric value)

    COLUMNNAME = the column name of your choice column in Dataverse

    TABLENAME =  the Name of your Dataveretable wehre the choice column is in.

     

  • Germán Profile Picture
    Microsoft Employee on at
    Re: Make a label visible based on a dropdown selection

    I expect to get back text with Microsoft Products like: Office, Power Apps, etc

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Make a label visible based on a dropdown selection

    That's quite a tricky one. 

     

    What do you expect to get back? How does it look in your Datasource?

     

  • Germán Profile Picture
    Microsoft Employee on at
    Re: Make a label visible based on a dropdown selection

    It gives the same result, but with less columns this time:

    Germn_0-1714124630049.png

     

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Make a label visible based on a dropdown selection

    Thank you  @Germán,

     

    Now we can say quite confidently, that the issue lies within the table somewhere. 

    It could be that Powerapps has a problem with showing the value because off too many nested columns.

    Because of the image could you try to only collect the Selected value from your Dropdown. We could see there that it was also a Table.

    Collect(colTest, ProductInput.SelectedItems.Value)

     

     

  • Germán Profile Picture
    Microsoft Employee on at
    Re: Make a label visible based on a dropdown selection

    Ok, so I have created the collection but it looks a bit weird (maybe I did something wrong).

    So, I started with:

    Germn_0-1713970311260.png

    And then I got the collection with all the columns in the table from dataverse, not only one:

    Germn_1-1713970355784.png

    But still, in the created column "Product" the values I get are ?:

    Germn_2-1713970421440.png

     

    Also, to add on your last comment. I tried to add the dot behind value on the other formula (with .SelectedItems and with .Selected), and no suggestion obtained

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Make a label visible based on a dropdown selection

    I know we are getting there step by step. 

    Now we know for sure, that you have a whole record to match with your combobox, and not just a Text string.

    It would be awesome to know what is inside the record. To achieve this you could either put it into a table or into a collection. Maybe you could also add a dot behind value to see what intelisens proposes to add. 

     

  • Germán Profile Picture
    Microsoft Employee on at
    Re: Make a label visible based on a dropdown selection

    Yes, I am working with a table in Dataverse. Sorry for not mentioning that

     

    I tried to display it in a text label, but when adding ".Value", it shows an error. It works if I do like productinput.Selected.Value, but it doesn't solve the question of the thread 

     

    This is the error:

     

    Germn_0-1713960565917.png

     

  • DBO_DV Profile Picture
    4,534 Super User 2025 Season 1 on at
    Re: Make a label visible based on a dropdown selection

    So you're using Dataverse,... Could you try to display productINput.SelectedItems.Value in a text label or a Table/Gallery. Like this you know exactly what your application expects to compare with

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard