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 / How to disable a field...
Power Apps
Answered

How to disable a field when autopopuling

(0) ShareShare
ReportReport
Posted on by 4

I am looking to disable a field when autopopuling, I am currently autopopuling the field with the Department of those obtained from the list of Office 365 Users.

For autopopuling I am using the Default property and there I add the following:

DataCardValue5.Selected.Department

What I am looking for is that at the time of autocomplete it is disabled, some guidance on how to do it

 

 

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

    Hi @sebastianslz1 ,

     

    Datacards can be disabled by changing the DisplayMode property to Displaymode.Disabled. This can either be done statically:

    DisplayMode = DisplayMode.Disabled

     

    Or you can set some kind of condition:

    DisplayMode = If(autopopulating, DisplayMode.Disabled, DisplayMode.Edit)

     

    In case you are looking to have the DataCard enabled only when no Department is selected:

    DisplayMode = If(IsEmpty(DataCardValue5.Selected), Displaymode.Edit, DisplayMode.Disabled)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @sebastianslz1 ,

     

    Did the above work for you?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard