Form api number field

Public

Form api number field with validate

Get raw version
php
  1. $form['element'] = array(
  2. '#type' => 'textfield',
  3. '#title' => t('Title'),
  4. '#element_validate' => array('element_validate_number'),
  5. );