Closed adarshkhatri closed 5 years ago
Hi,
Never noticed. I do all our contact forms via ajax submissions, and clear the form using javascript. What you did is fine. Can you do a PR?
You could also try just doing Mage::getSingleton('customer/session')->unsFormData()
Hi,
Never noticed. I do all our contact forms via ajax submissions, and clear the form using javascript. What you did is fine. Can you do a PR?
Was about to, but Git showed you had already made the changes. 👍 Thanks.
Is it normal or it's only happening in my instance?
After successful contact us form submit, data is not cleared from session, which is why it again fills the submitted data in the form.
I had to modify this function:
Is this correct or there is better way?