I have a SharePoint list filter web part connected to other web parts which filters content based on the our clients names, everything it working great but I have one issues:

When i select a client the web parts update, I open a document from the documentation web part, make my changes and close the document the filter reverts back to the default value, which means I have to re-select the client from the filter

enter image description here

I'm sure jQuery could probably solve this in some way?

EDIT: I have found this post but does not seem to work for me

Remember filter value using jquery and cookies

Do I need to edit the code?

  • store the filter state in a cookie or (modern HTML5 browser) Localstorage, upon pageload restore the filterstate – Danny '365CSI' Engelman Feb 20 '16 at 18:50
  • I have found a post (see my edited posts above) that talks about cookies, I have tried that code but it does not work for me, what do I need to edit in the code to make it work? – Matt Saunders Feb 20 '16 at 23:55
  • First learn to use cookies/localstorage in a small piece of code, only when you know how it works apply it your application. w3schools.com/js/js_cookies.asp – Danny '365CSI' Engelman Feb 21 '16 at 9:33

Your Answer

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

Browse other questions tagged or ask your own question.