By niranjan_panem on
Hi,
Need help/suggestion on code implementation, I'm altering the User List Page View"/admin/people/list" Filter field type="textfield" to autocomplete through below code, but filtering stopped working, need help in resolving this issue.
function knowitall_alters_form_views_exposed_form_alter(&$form, &$form_state) {
if($form['#id'] == 'views-exposed-form-user-admin-people-page-1') {
$form['field_partner_target_id'] = array(
'#type' => 'entity_autocomplete',
'#target_type' => 'node',
'#title' => t('Partner or School District'),
'#selection_settings' => array(
'target_bundles' => array('partner'),
),
);
}
}