Hi,

Great module!!
I'm not able to use the autocomplete functionwith the location module, is it possible to use a related drop down instead?
See screen shot for error

Thank you

CommentFileSizeAuthor
autocomplete.jpg47.19 KBchristian le fournis

Comments

christian le fournis’s picture

Category: feature » bug
calefilm’s picture

I would like to implement this as well.

I'm looking at the location.module file and the location_handler_filter_location_province.inc file:

Is there anything I can change in this code to make the field 'drop-down select' versus 'autocomplete'?


      return array(
            '#type' => 'textfield',
            '#title' => t('State/Province'),
            '#autocomplete_path' => 'location/autocomplete/'. $country,
            '#default_value' => variable_get('location_use_province_abbreviation', 1) ? $obj : location_province_name($country, $obj),
            '#size' => 64,
            '#maxlength' => 64,
            '#description' => NULL,
            // Used by province autocompletion js.
            '#attributes' => array('class' => 'location_auto_province'),
            '#required' => ($a4 == 2),
          );
calefilm’s picture

oop, nevermind. I found references for this here: http://drupal.org/node/330066 and here: http://drupal.org/node/364287

i'll update this post to my solution.

calefilm’s picture

Status: Active » Fixed

Successfully applied patch to version 6.x-3.1: http://drupal.org/node/364287#comment-3228966

tomaprice’s picture

Hi all,

I need to do that for province and city with Drupal 7.

Any idea?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.