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 / DataCard with Date tim...
Power Apps
Unanswered

DataCard with Date time column from SharePoint list

(0) ShareShare
ReportReport
Posted on by 6
Hello,
 
I am using a Modern form control for updating Training records. I have a record with all the information filled out and there is a date value in the Training date column for this record too. When the form is in the ViewForm mode; the DataCardValue_TrainDate shows the date value. Now, since I don't want the users to change the Training date so the DataCardValue_TrainDate.DisplayMode = DisplayMode.View. When I modify the Form = EditForm, the value in DataCardValue_TrainDate = Blank and the datacard is in ViewMode. 
I want the DataCardValue_TrainDate to show the date irrespective of the FormMode. How can I do that? I have shared images below (FormMode_View and FormMode_Edit).   
FormMode_Edit.png
FormMode_View.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Kushal_M Profile Picture
    165 Super User 2026 Season 1 on at
    Hello 
     
    This usually happens with the Modern Date Picker control inside a modern form. When the form switches to FormMode.Edit, the control expects a value from the card’s Default / DefaultDate property, but since the control itself is in DisplayMode.View, it sometimes stops binding correctly and shows Blank(). Try the following approach. Set the DefaultSelectedDate (or Value depending on the modern control version) of DataCardValue_TrainDate explicitly to the existing item value. Example: ThisItem.'Training Date' Then keep:  DataCardValue_TrainDate.DisplayMode = DisplayMode.View. This ensures the form is in Edit mode. Users cannot edit the field.Existing date still displays properly
     
    🏷️ Please tag me @Kushal_M, if you still have any queries related to the solution or issue persists.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
     Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.

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 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard