Sorry if this has been asked before (although I've been looking and haven't found quite what I'm looking for).

It's not currently possible to present the server-side validated messages (specifically required fields) inline on forms built with webform, is it? If not, is is something that I could realistically code myself? Looking at this ticket:


The line: "Form validation messages will not be moved because contrib modules and theme expect this information to be displayed in specific region." Makes me wonder if it would even be possible.

Be nice, this is my first question on here.



Drupal core includes the Inline Form Errors module which will move required validation messages below each element. Issue #2889272 was specifically about where the main message container, with the "X errors have been found" text, should be placed on a page.

enter image description here

I also recommend checking out the Clientside Validation module. Here is a short video showing how to improve webform client-side validation.

  • 1
    Thank you very much for getting back to me and so quickly too. Judging from the link for Inline Form Errors, it should work out of the box, shouldn't it? That's not the behaviour I'm seeing though, all the validation messages are bunched at the top. This suggests that there's something in the way I've set my form up which is preventing them from being shown in line, doesn't it? Any ideas where I could begin looking? Thanks. – foppyish Apr 16 '18 at 11:33

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.