I am using joomla's contact us form with a custom template I built.
When I submit the form, I am not getting any form validation error messages.
When I change the template to Beez3, the validation messages are showing.

Please help me from this issue.

  • 1
    which kind of errors do you mean? Can you attach a screenshot with the errors that appear with Beez3?
    – FFrewin
    May 20 '15 at 6:42
  • Error message showing is => Invalid field: Name
    – aish
    May 20 '15 at 7:15
  • my question is more about where your form displays this error, rather than the error itself. So please can you attach a screenshot with the error?
    – FFrewin
    May 20 '15 at 7:18
  • error messages shows just above the form
    – aish
    May 20 '15 at 7:28
  • 1
    in your custom template, have you included the <jdoc:include type="message" /> ?
    – FFrewin
    May 20 '15 at 7:34

As we found out through the comments conversation, it proved that you haven't included in your template, the <jdoc:include type="message" />, which is carrying and return any system messages.

So, on top of the <jdoc:include type="component" />, add the <jdoc:include type="message" />, in order to have Joomla outputting the system messages.

This refers to all kind of messages and is not specific to your form.

  • how is it possible to place the validation error messages corresponding to the text fields? All the messages are showing together on top of the form. Is it possible to place the error below the corresponding textfields.
    – aish
    May 20 '15 at 8:02
  • Not sure how easy would be to do this with the server side validation, but you could add client side validation to a template override of the form with some javascript. Have a look here. Client Side Validation
    – FFrewin
    May 20 '15 at 8:31
  • Alternatively you can use a 3rd party form extension - there are plenty of them and many free as well.
    – FFrewin
    May 20 '15 at 8:56

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.