To replicate:

  1. Activate Webform Hints module
  2. Assign a form with required fields to use Webform Hints
  3. Navigate to the form and click Submit with empty required fields

Error message(s): "field is required". (see attachment)
Should be: "[field-title] is required".

Problem: Webform apparently uses the ["#title"] attribute to construct the message, which is currently unset in webform_hints_add_title because the label should no longer appear. Will need to come up with a better solution.

Comments

guschilds’s picture

Status: Active » Closed (fixed)
StatusFileSize
new28.92 KB
new11.1 KB

Labels are no longer unset as of #1672990: Labels should be hidden, not removed..

Because of this, validation errors on required fields now include the proper title/field of the webform component.

See attached screenshots.