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 / View a submitted recor...
Power Apps
Answered

View a submitted record with the time

(0) ShareShare
ReportReport
Posted on by 270

Hello,

 

I had thought this would work....

 

I have a simple app - when a user navigates back to a submitted record I am using the same screen as they would use if they were submitting a new record.

I have a date and time field. In the new record I am auto populating the date and time  using the following:

DefaultDate: If(!IsBlank(vRecord.'Date&Time'), Parent.Default,
Today())

 

The above works

But I cannot get the time to pick up the old data when vRecord is selected:

If(!IsBlank(vRecord.'Date&Time'), Parent.Default,
Text(Hour(Now()),"[$-en-US]00"))

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @PowerAGuy ,

    I am not sure why that is not working, but if you want to show the current hour when entering a new record, you might try this

    If(
     YourFormName.Mode = FormMode.New,
     Text(
     Hour(Now()),"[$-en-US]00"
     ),
     Parent.Default,
    )

     

    Please click Accept as solution 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 Thumbs Up.

  • PowerAGuy Profile Picture
    270 on at

    Hi @WarrenBelz 

    Afraid I get the same behavior as my code, the default is set to 00 both for a new item and for a previously submitted item:

     

    PowerAGuy_0-1615203525331.png

    How do I check if my form mode is new - the options when added a form was "edit" or "display"?

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    @PowerAGuy ,

    I was assuming you were setting it 

    NewForm(YourFormName)

    You posted this using the same screen as they would use if they were submitting a new record.

    That syntax will certainly work on a new form - I use it regularly.

     

    Please click Accept as solution 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 Thumbs Up.

     

  • PowerAGuy Profile Picture
    270 on at

    @WarrenBelz 
    I haven't designed my previous forms like this but I've added the new form code on my + button NewForm(Form1);
     and your code now works for a new form

    I cannot get the submitted time to display on a previously submitted form though, that displays as 00

  • Verified answer
    WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    @PowerAGuy ,

    Try

    If(
     Form1.Mode = FormMode.New,
     Text(
     Hour(Now()),"[$-en-US]00"
     ),
     Text(
     Hour(Parent.Default),"[$-en-US]00"
     )
    )

     

    Please click Accept as solution 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 Thumbs Up.

     

  • PowerAGuy Profile Picture
    270 on at

    @WarrenBelz 

     

    Nope still no change.... as mentioned this works on the date field without any issues, which in SP is a date and time field, but I think PowerApps does not recognize the time field as a separate field? 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @PowerAGuy 

    Also consider for your DefaultDate property:  

    Coalesce(Parent.Default, vRecord.'Date&Time')

     And your other formula as:

    Text(Coalesce(Parent.Default, Hour(Now())), "00")
    

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 430

#2
timl Profile Picture

timl 318 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard