Refresh Page after form submission

This code lets you refresh the block every 10 seconds, Just put it inside the page’s custom code header section and replace blockid with the actual block name.

<script>
window.addEventListener('block-loaded-blockid', () => {
setInterval(() => {
window.dispatchEvent(new CustomEvent('reload-block-blockid'));
}, 10000);
});
</script>```