Advanced Search WP - how to keep user inputs

Hi, 

We have a SP 2013 foundation with search server enabled.

We have put an advanced search web part in a page and a results page. 

All is ok but we are looking to a way (button) to be back to the advanced seach WP page with the WP filled with the input data even after navigation within a lot of results page.

This excludes the back navigator 

Thanks for your help

Franois

February 20th, 2015 7:03am

Hi Franois,

Based on your description, my understanding is that you want to add a button to be able to back to the Advanced Search web part page with the inputs.

Without using back navigation, I recommend to use code to achieve this goal.

Firstly, add the button with onclick event which will redirect to the Advanced Search web part page on the results page with the redirect URL set to be http://server/Pages/advanced.aspx?k=xx (k=xx should be extracted from the results page URL.)

You can refer to the link below for button onclick event:

http://www.w3schools.com/jsref/event_onclick.asp

Secondly, add code in the Advanced Search web part page to extract the k=xx part from the redirect URL, and then put the corresponding value to the right place in the Advanced Search web part.

Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2015 2:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics