0

I have a Date Filter webpart connected to a List on page.

I am setting the default value of the list with JQuery (it sets that value to the next Wednesday). Here's a jfiddle showing how we are changing the Date Filter.

And it works, the date changes, but the filter doesn't get applied to the list with the new date.

It appears we need to call SetApplyFiltersToActiveIfPresent(); but adding this function call to our code doesn't do anything.

How can I apply the filter using JS/JQuery?

  • Are you using 2013? – Anders Aune Feb 9 '16 at 9:10
  • Yes. (need 15 characters.....) – 43Tesseracts Feb 9 '16 at 16:19
0

Is there any chance you could try the "Query string Url" filter connected to your list view web part (with appropriate column)? If you need to, you can also pass the date explicitly in the querystring through JS or jQuery.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.