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 / Attachment Fied requir...
Power Apps
Answered

Attachment Fied required based on Dropdown Choice

(0) ShareShare
ReportReport
Posted on by 5

Hi Everyone

 

I need to make sure that if someone selects "Yes" in a dropdown Field, they are required to attach a file. 

I tried the following formula: 

If(Sprache_DataCard2.Selected.Value ='Ja'.'Nein',DisplayMode.Edit,DisplayMode.Disabled)

 

Michaela3_0-1685435932628.png

 

Unfortunately I get several errors such as: "Selected" cannot be identified, "Valued" is not a valid name etc.

 

Can you help? Thanks!

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,563 Super User 2026 Season 1 on at

    Hi @Michaela3 ,

     

    The issue is that you are referring Sprache_DataCard2 instead of its' value (DataCardValueXX_X), so please try this:

    If(
     DataCardValueXX_X.Selected.Value ='Ja'.'Nein',
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

    You will have to replace XX_X with the right numbers for the actual DataCardValue control in Sprache_DataCard2.

  • Michaela3 Profile Picture
    5 on at

    It worked, thank you so much!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard