# Refresh Entire Page after Form is Submitted

> Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add…

Source: https://tadabase.com/docs/snippets/refresh-entire-page-after-form-is-submitted  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** Please note that this is now available as a plugin for easier installation. While you can use this document as a reference, the recommended method to add this functionality is through the plugin installation wizard. Learn more about plugins [here](https://tadabase.com/docs).

**There as several use cases for why this may be beneficial to add to your page. For example, you may have a form submitted and need everything around it updated immediately.**

**In the following steps, I will show you how you can set this up.**

**First, you’ll need to find your component ID.**

![Screenshot for “Refresh Entire Page after Form is Submitted”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-08/scaled-1680-/2022-08-24_23-50-43.png)

**Next, within your page's JavaScript tab add the following code.**

> **Note:** Change the component_ID in the code to your forms component ID.

```
TB.render('component_ID', function(data) {
    data.ele.find('.af-form-submit').on('click', function() {
        location.reload();
    });
});
```

![Screenshot for “Refresh Entire Page after Form is Submitted”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-08/scaled-1680-/2022-08-24_23-54-53.png)

**Original Community Post:**

[https://community.tadabase.io/t/refresh-entire-page-after-form-is-submitted/1348](https://community.tadabase.io/t/refresh-entire-page-after-form-is-submitted/1348)
