• I would like to pass the autocomplete results as text in the input field instead of showing clickable links, so that the input could be used in another form to get custom results. Is it something that is possible or is there a setting in the control panel I didn’t manage to see?

    Thanks and keep up the good work, awesome plugin ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Thank you for your kind words. Unfortunately there is no option for that, but it might be possible using a custom script function, something like this:

    jQuery(function($){
      $('.asl_r').on('click', 'a.asl_res_url', function(e){
        e.preventDefault();
        $('.asl_m input.orig').val($(this).text().trim());
      });
    });

    Best,
    Ernest M.

    Thread Starter tveq

    (@tveq)

    Thanks! It worked out nicely ??
    I’ve also added the handy “hideCSS()” before closing so that on click the result fills the search ant then hides the dropdown menu.

    Now I have to find a way to let that string result being the <input type=”text”> of another widget. Trying not to ask too much here, I’ll keep on researching but any help is well accepted.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fill results as text in the input instead of showing links’ is closed to new replies.