# How can I configure a page to auto-refresh from time to time?

**URL:** <https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640>\
**Category:** Get Answers\
**Created:** [May 11, 2016, 2:15pm UTC](https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640 "2016-05-11T14:15:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guilhermeb42087](https://avatars.discourse-cdn.com/v4/letter/g/a87d85/32.png) [@Guilhermeb42087](https://forums.knack.com/u/Guilhermeb42087)\
**Post date:** [May 11, 2016, 2:15pm UTC](https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640/1 "2016-05-11T14:15:44Z")

</div>

How can I configure a page to auto-refresh from time to time?

---

<div class="post-metadata">

**Author:** ![ajsmith78238](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@ajsmith78238](https://forums.knack.com/u/ajsmith78238)\
**Post date:** [February 18, 2019, 3:29pm UTC](https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640/2 "2019-02-18T15:29:11Z")

</div>

I would also like this feature.

---

<div class="post-metadata">

**Author:** ![Marc1](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Marc1](https://forums.knack.com/u/Marc1)\
**Post date:** [February 14, 2022, 2:29pm UTC](https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640/3 "2022-02-14T14:29:53Z")

</div>

This would very helpful feature to force refresh a page to activate latest updates.

---

<div class="post-metadata">

**Author:** ![JulianKirkness](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/juliankirkness/32/770_2.png) [@JulianKirkness](https://forums.knack.com/u/JulianKirkness)\
**Post date:** [February 14, 2022, 2:52pm UTC](https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640/4 "2022-02-14T14:52:58Z")

</div>

Hi

This can be done in Javascript:

```auto
//Auto refreshing a screen...
$(document).on('knack-scene-render.scene_xxx', function(event, scene) {
  setInterval(function(){ 

		window.location.reload;
		
    }, 30000);
});

```

This code will refresh scene xxx every 30 seconds.

If you prefer to only update a particular view on the page then you could replace window.location.reload with:

```auto
Knack.views["view_yyy"].model.fetch();

```

Which will refresh view yyy (which need to be within scene xxx).

Hope this helps.

Julian

---

<div class="post-metadata">

**Author:** ![Trey](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@Trey](https://forums.knack.com/u/Trey)\
**Post date:** [April 5, 2024, 6:59pm UTC](https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640/5 "2024-04-05T18:59:57Z")

</div>

> [@JulianKirkness](#):
>
> ```auto
> //Auto refreshing a screen...
> $(document).on('knack-scene-render.scene_xxx', function(event, scene) {
> setInterval(function(){ 
> 
> window.location.reload;
> 		
> }, 30000);
> });
> 
> ```

What if I find this is not working? Possible causes? I have checked my browser settings to ensure that javascripts are not disabled. I have also added the refresh view script on top of the refresh page script. (and yes, I had replaced the xxx with the scene number (19) and yyy with the view appropriate numbers.

Thank you!

---

<div class="post-metadata">

**Author:** ![CSWinnall](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/cswinnall/32/3631_2.png) [@CSWinnall](https://forums.knack.com/u/CSWinnall)\
**Post date:** [April 5, 2024, 9:35pm UTC](https://forums.knack.com/t/how-can-i-configure-a-page-to-auto-refresh-from-time-to-time/7640/6 "2024-04-05T21:35:17Z")

</div>

Hi Trey

You could look into KTL

They have an auto refresh keyword \_ar and you can set different times so \_ar=20 would auto refresh the view every 20 seconds you can view more here

> **[Keywords](https://github.com/cortexrd/Knack-Toolkit-Library/wiki/Keywords#_arn)**
>
> Knack Toolkit Library. Contribute to cortexrd/Knack-Toolkit-Library development by creating an account on GitHub.

And see a video on it here

[![](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/9/9d49b1211d343cd2f4b520ab1309c38cbd35df3a.jpeg "Introducing the Knack Toolkit Library - Demo #1") ](https://www.youtube.com/watch?v=fHZyqwJ7FPw&t=258s)

Craig
