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 / When a toggle is moved...
Power Apps
Answered

When a toggle is moved display timestamp

(0) ShareShare
ReportReport
Posted on by 8

Hello all! 

 Can someone tell me how to display and or update a timestamp if a toggle is moved on and off? 

 

Thank you in advance!

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @brockjvl,

    You do it with the UpdateContext() function.  On your Toggle OnChange property- UpdateContext({timestamp:Now(), showing:!showing). Put a TextInput box on the screen and set its Default property to timestamp, set its DisplayMode- View and set its Visible property- showing.  Now when you change the toggle, the TextInput box will display the timestamp in read only mode and when you toggle again, it will hide the textbox.  

  • brockjvl Profile Picture
    8 on at

    @Drrickryp ,

     Thank you for the reply. I will apologize up fron, but I am a complete noob with PowerApps. So I followed your steps, to the best of my knowledge, and I still seem to be having issues. Am I missing something, is my formatting wrong? Please take a look at my screenshots and see if I followed your directions properly.

     

     Again, thank you for your help. 

    Step 3.png
    Step 2.png
    Step 1.png
  • brockjvl Profile Picture
    8 on at
    Step 4.png
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    You left off the second curly brace in the OnSelect property of the toggle. If this answers your question place Mark it solved.
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Oops my bad, I left it off.
    UpdateContext({timestamp:Now(), showing:!showing})
  • brockjvl Profile Picture
    8 on at

    That worked! 

    Thank you @Drrickryp for your assistance!

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Please mark the issue solved off you are happy with the answer.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard