You’re super close. Just need to assign an ID to the form element and change your code from $(document).on… to $('refreshThis').on… where the refreshThis ID is added to the form element itself.
Thanks for making this cloneable for us, that’s exactly what I was looking for, however I’m facing the problem of page being refreshed too fast even before the form was submitted. I know I can increase delay time but I don’t think its clean solution. Is there away to refresh only after form was successfully submited?