Hello,

I need help with autocomplete form integration from geonames tools module. I would like to put this form "geonames_tools_search_form" somewhere, anywhere visible, in a block for example but dont know how to do that? Should i make new module and add it there? Can somebody post some example for this?

Comments

Marko B’s picture

I did put "tools_search_form" whole form in my custom module and i get autocomoplete field but when i type something i dont get back anything, maybe i should change this somehow?

There is an "print drupal_to_js($matches);" at the end of th script but somehow it doesnt come to my autocomplete form. I copied form from tools module and its exactly the same as there

  $form['search'] = array(
    '#type'              => 'textfield',
    '#title'             => t('Location Search'),
    '#description'       => t('Search for location'),
    '#autocomplete_path' => 'geonames/autocomplete',
  );
Marko B’s picture

For some reason this works online, not on localhost, maybe this path "geonames/autocomplete" is making problems locally and should be different? Tried it with whole path like "localhost/travel/geonames/autocomplete" but still not results. I'll do this online then:-)

lyricnz’s picture

Status: Active » Postponed (maintainer needs more info)

What do you mean "failed"? Check your system log for errors.

Marko B’s picture

Where did i wrote "failed"?

lyricnz’s picture

What do you mean "is making problems locally"?

lyricnz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing this issue as no further feedback from submitter in over a year.

Marko B’s picture

What do you mean "no feedback" :-)