Hi Everybody,
i am using form_alter to change a form. (views filter)
I already can change the lenght of the textfield, and i can use a cutom autocomplete path like user/autocomplete or admin/views/ajax/autocomplete/user
Now i want to set a new autocomplete path autocomplete/my_cck_field. I thought that should be trivial, but the only documentation i could find was here: http://drupal.org/node/854216 and i just can´t make it work.
Any suggestions ?
My code right now:
function mymodule_name_form_alter(&$form, $form_state, $form_id) {
drupal_set_message("Form ID is : " . $form_id);
$form['my_cck_field_filter_identifier']['#size'] = 10;
$form['my_cck_field_filter_identifier']['#autocomplete_path'] = 'user/autocomplete';
}
Thx in advance, John