Better Form Errors

Component type

module

Categories

Maintenance status

Development status

Downloads

2358

Component created

Component changed

Overview

This module changes Drupal form validation error messages to a better readable format with a stylable field name.

Drupal form validation error message example

Drupal core or contributed modules such as Webform may print error messages on server-side form validation for certain fields. For example, if a form containing a required field called REQUIRED FIELD is submitted without a value for that field, server-side validation will lead to the following HTML error message:

  REQUIRED FIELD field is required.

The field name may not be easily distinguished from the rest of the message. This module changes the HTML code of the message to:

  The field <span class="message-field" lang="en">REQUIRED FIELD</span> is required.

Since the field name is spanned within a class ("message-field"), it can be styled to be easily distinguished from the rest of the message. The module comes with a style sheet that styles the field name in italic font. Of course, you can change the style to what you like in your own style sheet.

Run Code

Component type

module

Maintenance status

Development status

Component created

Component changed

This module provides a Code Editor, which accepts a piece of code(currently PHP only) and displays its output. To get an Idea, think of following editors.

  • W3School's "Try It!" editor.
  • writecodeonline.com's editor.

Inputs are Welcome !

Features to Expect in future:-

Date & Duration Widget

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

The Date & Duration Widget module provides a field widget for date fields where the user inputs the start date/time and how long the event lasts, rather than inputting an end date directly.

Math Field

Component type

module

Categories

Maintenance status

Development status

Downloads

5355

Component created

Component changed

The Math Field module defines a new field type to dynamically calculate values on entity forms. This is an alternative to Computed Field
that does not require the use of PHP Filter.

Math expression fields are dynamically updated via ajax on the entity form as soon as all necessary fields are populated. If JavaScript is disabled, the field will be evaluated when the form is submitted. The result is stored in the database when the form is submitted.