Hello!

I want to add message to my Webforms form that will appear when user didnt fills the necesarry fields. Is it possible with Webforms module? I didt find this option in settings.

Thanks.

Comments

quicksketch’s picture

I'd suggest looking at Webform Validation module, which might provide some options for that. Webform does not provide custom error messages for required fields.

Spider84’s picture

Thanks for suggestion, but it doesnt help. Webform validation has only validation features.

chaloum’s picture

it a issue as the current method is not useful at any level. The needs to be better massaging instead of the default drupal behaviour.

quicksketch’s picture

Not useful "at any level" sounds like a bit of an exaggeration. For the majority of users, they don't want to specify error messages for every required field. If you'd like to change all filed-required messages globally, you can use a module like String Overrides (or just do it in settings.php).

chaloum’s picture

quicksketch

yes at any level

not being able to define message per item it an issue, having the errors at the bunched at the top of the page confused the end uses which than have to go through a process of matching the error to the question, this if they dont give up and not being able to put a a customizable message or instruction helping the user through to completion.

We have a form that has over 80 questions which mean there is a potential for there to be and 80 line red marquee error at the top of the page with no explanation as to that is going on, just a list of question. It jus t make users eye glaze over.

Yes I know you can break in down to pages and minimize the number of displayed errors but it's still a data dump at the top of the page

String Overrides is a work around but does not address the fundamental issue.

quicksketch’s picture

@chaloum: If you'd like to fund a developer or even a UX designer to come up with a reasonable way of implementing your request I'll look at it, but I really don't think this will be added to Webform directly. What you're describing sounds like you would need highly customized messages. If you have 80 fields, what do you want do when 20 of them are empty? Do you want to give specific messages at all or just say, "Please fill out the highlighted fields?" Or do you want a bullet list? Or if a user forgets one part of the name but not the other do you want message for the combination of those two fields? This isn't a clean-cut use case and just repeating, "this is broken. Fix it" doesn't really help anyone.

quicksketch’s picture

Status: Active » Closed (duplicate)

As the owner of this project I'm deciding to close this issue, not because it's not a valid request but because I don't want to have to read chaloum's aggravating comments. Let's reconvene in #889198: Add capability to use custom error message for required field, where there is an identical issue.

@Spider84: Please hop over there.
@chaloum: Please try to be more constructive and keep in mind that I'm not paid to maintain this module or implement most features.

chaloum’s picture

Quicksketch

Without sounding trite Dare I say it's basic forms behavior. I understand you may not be payed for doing this but Im not the only one bringing this up and your responses have been dismissive at best.

I'm more than happy to pay for this module and any other module for that matter as long as the clients needs are met. This is the underlying issue of Drupal nobody is being payed to build the modules and no one is taking any ownership.