how to have form refirect to same page after post submittion contact form 7 code example
Example: cf7 redirect to url
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://example.com/';
}, false );
</script>