Jump to content

Contactform PS 1.7.1 - How to hide contact fields after sending email (show only succes line)


Recommended Posts

Hi,

 

I have a small request (Prestashop 1.7.1). When filling in the contact form and sending your message the system shows the succes line (for example "message send" but show the complete contact form with all the fields too. Those fields contain the same info as before sending. So customer still sees his emailadress, message, etc. How to hide the contactform after submitting your email?

Edited by robbie007 (see edit history)
Link to comment
Share on other sites

Hello

 

It will be tricky because its a php form request and after submit it redirects back to same contact page with additional success message.

One easy solution for this is using javascript in custom.js, you check for a unique class in the html and hide the contact form with Javascript/jQuery.

 

If you don't know how to do it it, I can post code.

Edited by prestashop.pp (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...