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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Users online (2,100)