Voting starts in March for the Drupal Association Board election.
When editing the a text field widget's settings, you can set the character limit to be controlled with Maxlength. Widgets currently accepted are:
- Text area (multiple rows)
- Text area with a summary
- Text field
Maxlength creates a new 'bypass max length' permission. This is assigned to the Administrator role by default. Therefore, when you first install Maxlength, administrators will not see the counter.
Code (api?) Usage
Description: The maximum amount of characters to accept as input.
Values: A positive number.
Description: Indicates whether or not the field should have a reverse character counter.
Values: TRUE or FALSE
$form['description'] = array( '#required' => '1', '#description' => t('Max. 500 Characters'), '#type' => 'textarea', '#maxlength' => 500, '#maxlength_js' => TRUE, '#attributes' =>array( 'maxlength_js_label' => '@remaining characters left.', ), '#title' => t('Detailed Description (required)'), );