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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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