cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
settloe_99
New Member

Display hidden date field on dropdown

Hi,

 

I'm hoping someone can help a newbie with a problem I'm having with conditional displays.

 

I have a dropdown called Status and when I set Status to "02" I want a hidden date field to become visible. I've set the date field to Hidden and tried to use an If statement on the dropdown but I can't seem to get it to work.

 

Thanks

9 REPLIES 9
LRVinNC
Super User
Super User

What you are looking for is the Visible property. Set Visible on the Date field to

If(Status.Selected.Value  = "02", true,false)

This will tell Powerapps that when you have selected the "02" choice from the dropdown named Status, you want the Date field with the visible property to be visible.  Otherwise, if anything else is selected, you want the date field to be invisible.

LRVinNC

------------------
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.
v-yutliu-msft
Community Support
Community Support

Hi @settloe_99 ,

Could you tell me where do the drop down get value?

1)get value from data source

In this situation, could you tell me what is the field's data type that the drop down use?

If it's choice, you could try: 

If(Status.Selected.Value=02,true,false)

If it's text, you could try: 

If(Status.Selected.fieldname=02,true,false)

2)set the drop down's items: [01,02,03,...]

You could try: 

If(Status.Selected.Value=02,true,false)

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your reply.

 

That's what I've been trying but I'm getting an error of "Name isn't valid. This identifier isn't recognized"?

 

Thanks

Can you post a screen shot of your error and of the definition of the two controls in question?  That would enable us to help you better.

LRVinNC

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

Hi,

 

I'm getting the below. Thanks for your help.

 

Untitled.jpg

Hi @settloe_99 ,

Could you show me how do you define the status control?

If the data of the control comes from data source, what's its data type?

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

The data source is a SharePoint list and the data type is set to Choice

 

Untitled.jpg

Hi @settloe_99 ,

Please try this formula:

If(Status.Selected.Value=02,true,false)

Not If(Status.Select.Value=02,true,false)

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Thanks for the reply but this doesn't work either. I get the same error on the first If statement.

 

Thanks

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,173)