I am trying to add a "number" field type to a form using FAPI:
$form['phone_number']['areacode'] = array( '#type' => 'textfield', '#title' => '---', '#width' => '30%', '#align' => 'center', '#required' => true, '#maxlength' => 3 );
I change the TYPE to "number" and the field doesn't get generated at all. The number module is enabled. I have implemented the following theme functions:
What could be behind this field not showing up when I use
#type = number or
#type = number_integer, etc?
This might have something to do with it:
However I actually want the type to render as "number" in HTML so smart phones show a numeric dialer