cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

Here

 

grr.jpg

cwebb365
Impactful Individual
Impactful Individual

I mean I guess it could be because it’s using the parent value. Replace the data card value and see if you ca. Use the control name. Remember use type ahead it’ll be the parent name where the data card is sub tree in there.
Anonymous
Not applicable

I'm very sorry @cwebb365 I can't understand what you mean. I'm very new in PowerApps 😞

cwebb365
Impactful Individual
Impactful Individual

The parent card. So Request Type_Datacard1.Selected.Value = “Renewal”
Anonymous
Not applicable

Oh I did that a while ago but still failed.

Hi @Anonymous ,

 

I've made a test on my side and I hope this will work for you, too.

 

You have to write the formula for the visible property of your attachment data card as follows:

 

If(DataCardValue7.Selected.Value = "Renewal",true,false)

 

Best regards,

 

PA

Anonymous
Not applicable

Hi @PowerAnalytics , I tried that too but still it won't work. Maybe because of this error message. I still just do not understand what it says.

 

er.jpg

cwebb365
Impactful Individual
Impactful Individual

ok, did some searching here and you are using CDS and that drop down is an Option Set which makes this a whole lot more complicated that it should be :). I don't know CDS very well but you have to reference something like the selected.value = 'Your optionset name'.Value, it's too much to explain or for me to comprehend even myself right now lol..... it's usually much easier than this but due to the CDS and option set factor it complicates this a lot. And doing this as a beginner will be very frustrating :).

Anyway, hopefully someone with option set experience will come across this and be able to help!

cwebb365
Impactful Individual
Impactful Individual

Here is an article going over optionset with CDS and some examples on how you can compare the values to something. https://powerapps.microsoft.com/cs-cz/blog/option-sets-and-many-to-many-relationships-for-canvas-app...
Anonymous
Not applicable

Sorry if this troubles you 😞 CDS is what I learned but the teacher don't tell me that CDS is complicated. Hope someone would help me. Thanks for the effort!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (73,495)