This project is not covered by Drupal’s security advisory policy.
Overview
A small module for developers allowing a user to specify custom message displayed when required form element is not filled.
See https://www.drupal.org/node/742344 for D8 discussion.
Features
- Set custom error message:
$form['message'] = array( '#type' => 'textarea', '#title' => t('Message'), '#required' => TRUE, '#required_error' => t('Please enter a message.'), ); - Works with any form element.
Installation and configuration
- Install Required Error Message (required_error_message) module as usual.
- Add
#required_errorto a form element.
Supporting organizations:
Further development, testing and support.
Initial development and support.
Project information
Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues.11 sites report using this module
- Created by rafalenden on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
