×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Validation error messages

Validation error messages 9 years 4 days ago #32756

  • Dan Tucker
  • Dan Tucker's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi
I've installed and setup CMC module for Joomla, which seems to be working perfectly except that validation errors (eg. Invalid field: Email Address) aren't appearing via an AJAX method in the form itself, they are appearing in the system messages container of my site template. I can't see a demo to tell whether this is normal behaviour but if I enter a correct email address and submit, then the success message does correctly appear inline, within the form itself.

Is it possible to have validation messages appear within the form and if so, can you suggest why this may not be working for me?

Kind regards

Validation error messages 8 years 11 months ago #32848

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dan,
It sounds like that the ajax registration is actually not working and the form is being posted with a normal post request. This is the fallback behavior. Most probably you have a js error oon the page that prevents the form to be sent with ajax. If you send it through ajax the validation will actually happen on the fly before sending. And if any error occurs when the form is sent it will be shown right where the form is and not in the standard error message container of your site.

Regards,
Daniel
The following user(s) said Thank You: Stefan Basting

Validation error messages 8 years 9 months ago #33420

  • Axses
  • Axses's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
We are experiencing a similar issue on a client site and tracked it down to pages on which the template included <jdoc:include type="message" />, which renders a <div> with id "system-message-container" for Joomla messages.

To ensure it wasn't a conflict with other components, I did a clean Joomla install and the issue was the same.
There are no jquery/javascript errors.
Removing <jdoc:include type="message" /> from the template index.php will resolve the issue but is not a realistic solution.

I've done a video demonstrating the issue at axses.com/vids/joomla-error.mp4

Please provide further guidance as to how to permanently resolve this problem.

We are using the latest versions of Joomla and CMC - Mailchimp.

Thank you.
  • Page:
  • 1
Time to create page: 0.106 seconds