Clear persistent form data on successful form submission?
I have a contact form set up in a shared file and included on multiple pages. The form includes captcha validation and I have also set up form persistence so that if they get the captcha wrong, they don't have to retype their message. However, the form data is being kept even after successful submission so the user can see it on every page the form appears on. How do I get it to clear when a successful submission is made?