0

we have a contact form on a CMS page an inserted this through cms block in backend (reason is: we can show some faq info and other above the form).

The first problem was when we submit we are sent to another page. This was solved by adding $this->_redirectReferer(); in case of error to controller.

Only problem we see now: onError submission the customer is redirected to the current page

  • but all form fields are blank: can we pre populate thema again?
  • The error global message will not show anywhere (we are a contacts form on a CMS page - I am finding it hard to really add the error information)

Help appreciated

enter image description here

  • what error you got – Magento 2 Nov 25 '15 at 10:29
  • no error ..... the error is that we are not seeing either success or error message after form submittal – snh_nl Nov 25 '15 at 10:39
  • i can't understand you got sucess message or not – Magento 2 Nov 25 '15 at 11:03
0

The error global message will not show anywhere (we are a contacts form on a CMS page - I am finding it hard to really add the error information)

This was fixed by removing this solution again Mage::app()->getLayout()->getMessagesBlock()->setMessages

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.