• Resolved dorishk

    (@dorihsk)


    Everything is working fine with this plugin. The issue what I am facing is how to trigger search by setting the value in instantsearch file.

    I am trying to setup the value and doing trigger search like this

    $('#algolia-search-box .ais-search-box--input').val('amazon');
    $('#algolia-search-box .ais-search-box--input').keypress();
    $('#algolia-search-box .ais-search-box--input').keyup();
    $('#algolia-search-box .ais-search-box--input').blur();
    $('#algolia-search-box .ais-search-box--input').trigger('click');

    But none of them are working fine. So can someone tell me how to make this?
    Any help and suggestions would be really appreciable.

    Kind Regards,`

    • This topic was modified 3 years, 5 months ago by dorishk.
    • This topic was modified 3 years, 5 months ago by dorishk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If I’m reading everything right, basically you’re trying to programmatically trigger the search instead of having it be kicked off by human interaction?

    Is that accurate?

    Thread Starter dorishk

    (@dorihsk)

    @tw2113 Yes I want something like that. So can you tell me how to do that?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not completely sure that’s going to be possible, but I can definitely check with others on the dev team about this. Javascript isn’t my strongest forte, so I’m going to rely on them to potentially help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trigger instantsearch by setting input value dynamically’ is closed to new replies.