Question

I have added a search box for a SharePoint List I have created and I want to be able to save the filter when I edit an item.

For Example, I find my name, edit that item and when I save that item I want to be able to go back and see the same filtering being done?

Is there anyway I can get this done for my team as I have a huge list that is frustrating to do every single time once I edit, save, etc.

I am new to coding so if there is any background coding needed I would appreciate a simple code or an explanation of what is going on in the code.

Was it helpful?

Solution

In the list you can enable Dialogs so the list filtering will get persisted. After editing you can close the dialog which will not reload the page.

Second option is to handle the keypress event of the searchbox and pass the value back and forth using querystring or by placing the values in cookie. You can attach the value as below

$('.ms-InlineSearch-SearchBox-Baseline').bind('keypress', function(e){
    if((e.keyCode || e.which) == 13) {alert($(this).val())};
});
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top