How to customize an error message when the user doesn't fill out a mandatory field in webform, I mean, the webform is generated by the webform module and the validation rule is set by webform validation module。
How to customize an error message when the user doesn't fill out a mandatory field in webform, I mean, the webform is generated by the webform module and the validation rule is set by webform validation module。
Comments
Comment #1
stupiddingo commentedMandatory is set by the webform module, not webform validation. This text is not editable, and unfortunately the required field and min-length options inside webform validation do not allow a custom error message.
You could add a custom module pretty easily that would do something similar:
webform_validationrequired.module
There may be a more elegant way, but this will work. ;)
Comment #2
jjma commentedStringoverides worked for me to customize the message for users. Copy the text from the webform.module that you want to replace and enter it to the stringoveride config page with the text you want to use.
Jon
Comment #3
svendecabooterThose seem 2 valid solutions to the problem, so marking as fixed.