[development] Inline form errors

Peter Droogmans Peter at attiks.com
Thu May 26 10:25:55 UTC 2011


Steven,

You can have a look at http://drupal.org/project/clientside_validation (disclaimer: build by us), it adds javascript validation to all forms using the jquery.validate plugin, this plugin allows you to position the error messages inline, but this option isn't currently supported, but it can't be that hard to add ;p


Best regards,
Peter Droogmans
Attiks
Ketsstraat 94
2140 Borgerhout
Belgium
32 3 288 61 17
32 497 44 44 77



-----Original Message-----
From: development-bounces at drupal.org [mailto:development-bounces at drupal.org] On Behalf Of Steven Jones
Sent: donderdag 26 mei 2011 12:18 PM
To: development
Subject: [development] Inline form errors

Hello developers,

We're building a site that has a form in a block in one of our sidebars. If the user enters incorrect values, the form validation happens correctly, and errors are flagged up. However the messages such as:

'The title field is required'

Appear in the main messages region, at the top of the page content, which is nowhere near our form on the page, which is in a sidebar. The fields in the form are highlighted, so the user can see that something is wrong with the input, but the messages are a mile away.

Is there any module or method for getting the validation messages for the current form in the location of the form itself, and out of the global messages? Or any effort to get something like this into core?
I'm happy to code something if I need to, just wondered if anyone had tackled this before?

Regards
Steven Jones
ComputerMinds ltd - Perfect Drupal Websites

Phone : 024 7666 7277
Mobile : 07702 131 576
Twitter : darthsteven
http://www.computerminds.co.uk



More information about the development mailing list