cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sunil_sacha
New Member

Real Time Text box auto refresh using timer

Hi, 

 

In my Login screen i have add the time Text box and use the code to get the date and time.

 

Text Code - Text(Now().DateTimeFormat.LongDateTime)

 

Since the time not showing dynamically so i have add the timer to refresh the text box every 5sec.

 

Can some one suggest me what is code to be used for Text Box refresh using timer pls. 

 

sunil_sacha_0-1601311235564.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ragavanrajan
Super User
Super User

@sunil_sacha , 

 

 You can achieve this with the following steps. 

 

Step 1: Insert > Timer Control  

 

Step 2: Change the following properties of timer: 

#Property NameProperty Value
1Duration0
2AutoStarttrue
3Repeattrue
4OnTimerEndSet(CurrentTime, Now())
5Visiblefalse

 

Step 3: Insert Text box control > Set Default property to Text(CurrentTime,”dddd  dd/mm/yyyy hh:mm:ss”)

 

In this way you can see the current time in the textinput control. Run the app to see the changes. 

 

 

PS:  This is a PowerApps Portal forum. In future, post your queries to the right forum. 

 

------------

 

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

1 REPLY 1
ragavanrajan
Super User
Super User

@sunil_sacha , 

 

 You can achieve this with the following steps. 

 

Step 1: Insert > Timer Control  

 

Step 2: Change the following properties of timer: 

#Property NameProperty Value
1Duration0
2AutoStarttrue
3Repeattrue
4OnTimerEndSet(CurrentTime, Now())
5Visiblefalse

 

Step 3: Insert Text box control > Set Default property to Text(CurrentTime,”dddd  dd/mm/yyyy hh:mm:ss”)

 

In this way you can see the current time in the textinput control. Run the app to see the changes. 

 

 

PS:  This is a PowerApps Portal forum. In future, post your queries to the right forum. 

 

------------

 

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,975)