cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DorothyBL
Level: Powered On

Show/Hide Attachments Field based on the drop down field

Hi Everyone! This is my first PowerApps project. I'm making a request form.

 

How should I make the "Attachments" field be visible when the "Request Type" field is set to "Renewal"?

 

Fields

2019-08-20_11-55-51.jpg

 

Dropdown List on Request type

2019-08-20_11-56-03.jpg

 

TIA!

23 REPLIES 23
cwebb365
Level 10

Re: Show/Hide Attachments Field based on the drop down field

On the Visable property of the attachment control put in If(Requestfield.selected.value = "Renewal")
DorothyBL
Level: Powered On

Re: Show/Hide Attachments Field based on the drop down field

Hi @cwebb365 it returns an error.

 

2019-08-20_12-41-18.jpg

cwebb365
Level 10

Re: Show/Hide Attachments Field based on the drop down field

you need to replace Requestfield with what your dropdown control is named, selected it and you should see the name on the left.
DorothyBL
Level: Powered On

Re: Show/Hide Attachments Field based on the drop down field

My bad, but I replaced it with "Request Type" field name. That's the field name of the dropdown.

 

I also tried "DataCardKey8", "Request Type_DataCard1". Still won't work. Am I doing something wrong?

 

2019-08-20_12-55-15.jpg

cwebb365
Level 10

Re: Show/Hide Attachments Field based on the drop down field

it needs to match the controls on the left side in your menu. So in this case, the actual Dropdown is that Datacardvalue7 , you get type ahead as you type, so it should show up as you start typing, same with the next available values (.Selected.Value)
DorothyBL
Level: Powered On

Re: Show/Hide Attachments Field based on the drop down field

Still not successful. I typed in and words appear. But still don't work. 😞

 

w.jpg

cwebb365
Level 10

Re: Show/Hide Attachments Field based on the drop down field

Oh crap sorry, don't put If around it, just do Datacardvalue7.selected.value = "Renewal"

Past my bedtime. lol.

You can use If too but you have to add ,true,false) after it, but the above does the same thing.
DorothyBL
Level: Powered On

Re: Show/Hide Attachments Field based on the drop down field

I'm wondering if I do something wrong. But still it won't work.

 

Checking the error details, here's what I got.

er.jpg

cwebb365
Level 10

Re: Show/Hide Attachments Field based on the drop down field

Can you show the visible property text you have in there?

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,762)