Skip to main content
Nintex Community Menu Bar
Question

Pass string to table's search with javascript?


Forum|alt.badge.img+18

Is there a way to pass a string to a table’s search bar when the table renders?

Forum|alt.badge.img+18

^^


Forum|alt.badge.img+17
  • Nintex Employee
  • July 9, 2024

There really is not a supported way to do this now.  The searchbox has a class, which can be found from the component, and be manipulated using jQuery.  So theoretically you could add text to the class.   Getting the search to atcually be effective would be an entirely different problem…

You can pre-fill filter values by adding parameters to your URL string.  This may work for you.  If you have a condition named “type” append  “&type=foo” to your URL and the page will be filtered to foo. 




Forum|alt.badge.img+10

I know this is an old one, but I had to do this recently and used jQuery’s .change() method on the searchbox to force the table to process the search. For example:

// Insert value into search box $(".searchbox").val("Value to put into search box"); // Cause searchbox to update and run search on table $(".searchbox").change();

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings