Refresh form without refreshing the page

Hi YChuskit,

I know its a bit late, but one way I found is to create the form again after submitting the form. Just make sure to display a thank you message on the form settings (no redirect).

Tested it and works:

$(document).ready(function(){

 window.addEventListener('message', event => {
 if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmitted') {
 hbspt.forms.create({
 region: "na1",
 portalId: "{{ADD YOUR PORTAL ID HERE}}",
 formId: event.data.id,
 target: ".modal-body" // Add the element class where you need to create the form again
 });
 }
 });

 });

Regards,