Title: Trigger instantsearch by setting input value dynamically
Last modified: June 21, 2021

---

# Trigger instantsearch by setting input value dynamically

 *  Resolved [dorishk](https://wordpress.org/support/users/dorihsk/)
 * (@dorihsk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/trigger-instantsearch-by-setting-input-value-dynamicallyically-setting-value/)
 * 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 4 years, 11 months ago by [dorishk](https://wordpress.org/support/users/dorihsk/).
    -  This topic was modified 4 years, 11 months ago by [dorishk](https://wordpress.org/support/users/dorihsk/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 11 months ago](https://wordpress.org/support/topic/trigger-instantsearch-by-setting-input-value-dynamicallyically-setting-value/#post-14581493)
 * 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](https://wordpress.org/support/users/dorihsk/)
 * (@dorihsk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/trigger-instantsearch-by-setting-input-value-dynamicallyically-setting-value/#post-14581854)
 * [@tw2113](https://wordpress.org/support/users/tw2113/) Yes I want something like
   that. So can you tell me how to do that?
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [4 years, 11 months ago](https://wordpress.org/support/topic/trigger-instantsearch-by-setting-input-value-dynamicallyically-setting-value/#post-14584267)
 * 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.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/trigger-instantsearch-by-setting-input-value-dynamicallyically-setting-value/#post-14584267)
 * Status: resolved