web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Need help with hiding ...
Power Apps
Answered

Need help with hiding fields and datacards based on dropdown values

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone, I'm new to both Powerapps and these forums.

 

I need to create a form in wich I'm able to show/hide a text input field based on the value of a drop down.

 

Example:

 

Dropdown1 has the following values (the data source is a list):

 

Health
Insurance
Other

If I select "Other", I need a text input field to appear so the user can submit another area apart from health or insurance.

 

I have tried with multiple variations of this formula, to no avail:

 

If(Dropdown1.Selected.Value="Other", true,false)

 

Powerapps simple tells me that .Value= is not valid. 

 

Can someone help me resolve this? I've trying for 3 days to solve this and created more problems than solutions.

 

Thanks in advance.

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Welcome to PowerApps and to the community forum.

     

    So, in general (which I believe you have already come to) you want your text input control to be visible or not based on the value selected in the dropdown.

    So, indeed you will be looking at the Visible property of the TextInput control.

    In there you should have the following formula:

       (Dropdown1.Selected.Value = "Other")

    Although you can put the If part and the true and false in, you don't need it.  The above formula will evaulate to true or false by itself.

     

    Now...why would this not work for you?

    This is going to depend on the Items property of your DropDown control.  You mention it is from another datasource.  If you are using Distinct to get these values, then the dropdown selection will not have a "Value" property, instead it will have a "Result" property.  So, the above formula would be (Dropdown1.Selected.Result = "Other)

    If there are any other formulas you are using to create the dropdown list items, then please share that so that we can explore further if needed.

     

    I hope this is helpful for you.

     

  • Verified answer
    BitLord69 Profile Picture
    914 on at

    Hi!

     

    To add on to @RandyHayes reply: if you're using a data source with several columns, in the list box you have to specify which column to display and then in the formula which column to compare to. The formula can be written:

     

     

    Dropdown1.Selected.ColumnToCompare = "Other"

     

     

    For example, I use a data source (list if you like) with the following columns: 

    Id Name InsuranceType

     

    In the list box I display the name, but I want to use the InsuranceType to compare, hence I use:

     

     

    Dropdown1.Selected.InsuranceType = "Other"

     

    Hope that helps , good luck!

     

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That's exactly what I needed. Problem was I was referencing the wrong column.

     

    Using "Name" solved it. Preoviously I was referencing "Value", which is not present on my list.

     

    Thanks!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard