This thread is resolved. Here is a description of the problem and solution.
Problem:
Search result on the different page
Solution:
Views allow you to display search form and results either different section of same page OR search form and search results in different pages.
I am trying to: Setup search form on page A, and return the result on page B.
// page A hidden link
views with only search form : [wpv-form-view name="global-legislation" target_id="20306"]
// page B (layout) hidden link
"global-legislation" views, inside "Legislations - Archive" layout. The views show both search form and results.
note : 20306 is the layout ID (please see screenshots), it's an archive page for "legislations".
Link to a page where the issue can be seen: hidden link
I expected to see: After click submits from page A, the result return on page B. I can't find the option to select "layout" for the "target" result page.
Thank you for your reply Beda. I guess to simplify my question, is it possible to use Layout ID as a target?
In Layout, I inserted the View using visual editor cell and shortcodes. (see screenshot) And it still doesn't work.
I created a test with different target ID. hidden link
On the first form, the target ID is "Layout" and the second form target ID is "Page".
Hello. Thank you for contacting the Toolset support.
Well - Views allow you to display search form and results either different section of same page OR search form and search results in different pages.
So, workaround for you is to create a new page and assign your desired layout to that page and use that page to display the search result as you can not directly link layout ID to display the search result.
Hi Minesh, thank you for your explanation. But I'm still confused. Can we start from beginning.
Basically, this what I'm trying to do:
Page A : Search form only > click submit, the result open on Page B.
Page B : Search form + Results (page B is also an archive page)
Could you please explain it to me on how to do this correctly.
Well - simply, you can not merge archive here with page. As I tried to explain, you can only assign the page and to page you can assign the layout you need.
Page A : Search form only > click submit, the result open on Page B.
==> This is OK
Page B : Search form + Results (page B is also an archive page)
==> This should be another page (this page should work as archive - instead of archive) and to this page you can assign the layout you want.
I'm still unsure how to accomplish abrahamL's request. I'd like to do something very similar.
"Basically, this what I'm trying to do:
Page A : Search form only > click submit, the result open on Page B.
Page B : Search form + Results (page B is also an archive page)"
Could you please give detailed instruction on how to make that interaction happen?
hi
solve it by:
1- create new custom search view name it for example (#mysearch) and assign fields to it .
2- create 2 new page => Page A (search form) and Page B (search result ) and add the custom search view (#mysearch) to both of them.
3- Go to Page A (search form) and click on the (view #mysearch) and from the #Block choose (only the search form) then it will give you an option to choose a page and here choose Page B (search result ) .
4- in Page B (search result ) click on the (view #mysearch) and choose (only the search results).
5- save your work and we Done.
look to image