Skip Navigation

[Resolved] Search result on the different page

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.

You can find proposed solution, in this case, with the following reply
https://toolset.com/forums/topic/search-result-on-the-different-page/#post-902156

Relevant Documentation:

0% of people find this useful.

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 5 voices.

Last updated by elhadia 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#901260
chrome_2018-05-19_03-42-57.png
chrome_2018-05-19_03-26-58.png

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.

Instead, I got: 404 page

#901270
#901343
chrome_2018-05-19_19-15-20.png

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".

Thank you,

_abe

#901467

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#901557

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.

Thank you.

#902156

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

#1349427

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?

Thank you

#1364529
2.PNG
1.PNG

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