Adding a loading state to forms

Haven’t been able to find anything that speaks to this in the forums. I’m looking to add a processing/loading state to a form once a user completes a form. We’re currently having the form point to a Pardot form handler endpoint, and it’s taking ~3 seconds for it to trigger the confirmation state (a separate ‘Thank You’ page). Being able to add some sort of visual element to indicate the form is processing would be great.

Any ideas?

Hi @tleonard25,

You might be able to achieve something like this with custom JS and CSS. Essentially, hiding the form and showing a “loading” animation that actually listens for the call back from Pardot.

Best,
Hristian