Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to include a text Autocomplete Widget in a compound field (more here) using the snipped below.. but the field does not autocomplete. What am I doing wrong?
$element['contact_name'] = array(
'#title' => t('Name'),
'#type' => 'textfield',
'#default_value' => $defaults['contact_name'],
'#weight' => 2,
'#size' => '100',
'#max_length' => '255',
'#widget_type' => 'autocomplete_widgets_flddata',
'#autocomplete_match' => 'contains',
'#autocomplete_case' => '0',
'#widget_module' => 'autocomplete_widgets',
);
Comments
Comment #1
csabamezei CreditAttribution: csabamezei commentedI am also interested in getting know how inserting new nodes with autocomplete fields supposed to work.