the source shows:
<input id="edit-field-location-taxonomize-terms-tid" class="form-text form-autocomplete ctools-auto-submit-processed" type="text" maxlength="128" size="60" value="Germany" name="field_location_taxonomize_terms_tid" autocomplete="OFF" aria-autocomplete="list">
tried hook_form_alter
but didn't find size
or maxlength
using drupal_set_message('<pre>' . print_r($form, TRUE) . '</pre>');
also
function modulename_element_info() {
$types['textfield'] = array(
'#input' => TRUE,
'#size' => 20,
'#maxlength' => 128,
'#autocomplete_path' => FALSE,
'#process' => array('ajax_process_form'),
'#theme' => 'textfield',
'#theme_wrappers' => array('form_element'),
);
}
didn't work and don't know if/how i can change the size with css.
any help is appreciated. thanks a lot!
#size
and#maxlength
for a textfield are60
and128
and thus wouldn't necessarily be found in the form, but you can certainly set them there in thatform_alter()
....