Refresh after modal close?

Hi,

I think this one should do the trick:
To be inserted in the page where the form is.
change form1 and item-details1 by your current block IDs

<script>
window.addEventListener('block-loaded-form1', () => {
    window.addEventListener('submit-form-success-form1', () => {
        setTimeout(() => {
            window.parent.dispatchEvent(new CustomEvent('reload-block-item-details1'));
        }, 500);
    });
});
</script>

I also added a 500ms delay (line 5) before the item-details reloads on the parent page. This value can be adjusted if needed.