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 Apps
Answered

Modern Date Picker

(0) ShareShare
ReportReport
Posted on by 32
I am trying to add modern date picker in the datacard of the PowerApps form.  However, I am not able to add fill property for DisplayMode View and Disable.  I tried using condition in fill property as:
 
If(Self.DisplayMode=DisplayMode.View, ||  Self.DisplayMode=DisplayMode.Disable, Color.Gray, Color.White) 
 
It is not working, is there a workaround for this functionality?
 
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,450 Most Valuable Professional on at
    Firstly, your formula has errors - also tested this here and worked as expected.
    If(
       Self.DisplayMode = DisplayMode.View || Self.DisplayMode = DisplayMode.Disabled, 
       Color.Gray, 
       Color.White
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • CU08111717-0 Profile Picture
    32 on at
    This is my code for modern date fill property: 
    If(Self.DisplayMode=DisplayMode.Disabled || Self.DisplayMode=DisplayMode.View,RGBA(199, 204, 185,.5),Color.White)
    It is not working for both display mode type. Returning white fill.
  • Verified answer
    WarrenBelz Profile Picture
    155,450 Most Valuable Professional on at
    Just another bug (of numerous) in Modern controls - I do not use them in Production Apps presently. Mine works on View and Edit - Disabled does not.
     
    You might consider reverting to Classic controls - they do what is needed.
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
     
  • CU08111717-0 Profile Picture
    32 on at
    Thank you for your response, 

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 833

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 383

Last 30 days Overall leaderboard