Tell us what you are trying to do?
I have created custom search as a dropdown using views. I want to display the dropdown menu on my homepage and the results to be shown on a separate page I have created for the results.
I have used this guide: https://toolset.com/course-lesson/displaying-search-results-on-a-different-page/
I have selected for results to be shown when selecting a category with no need to select submit.
I have 6 custom search dropdown menus in my homepage - I do not want to include 6 submit buttons as want to build the homepage as minimalistic as possible.
However, the results cannot be displayed on a separate page without a submit button (I get a notification on the settings screen that a submit button is required) and instead they get shown on my homepage. Is there a work around for this?
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
Site is not live yet.
Hi there,
The separate page result feature works by loading the result page after clicking the submit button and it does not have the Ajax feature naturally as the system should load another page to show the result.
Now if you do not have the submit button and then try to load the page with a change in the dropdown it will be an awful experience. Because as soon as you select a dropdown you should wait for the result page to load and it disrupts the flow.
That is why the submit button is mandatory on the separate page result mode/
Thanks.
Hello Christopher,
Thank you for your message,
I have my reason not to want the submit button on the homepage - as for any risk to flow disruption that is to the webmaster's peril and have my reasons to want to work without a submit button on the homepage.
I would like to find a way to work around the need for a submit button and be able to show results to a new page upon dropdown selection. I would be grateful for advice if this is feasible?
Hi there,
Toolset does not have such a feature, I can try to see if there is a custom method to do so. It means I will try to give you a solution for custom development, but that does not mean we can completely handle the future possible problems that may occur it is an attempt to be as helpful as possible.
I'd appreciate it if you can share a version of the search that has the submit button and shows teh result on another page.
What I want to try to do:
- Hide the submit button via CSS.
- Add a Javascript code that triggers when a dropdown from search is selected.
- After the dropdown selection, the Javascript code will trigger the click event of the hidden submit button to start the process of loading the new page with the result.
- So basically we do not touch the underlying code, just trick the system to trigger submit after dropdown selection.
If you give me the URL I will try to develop the proper Javascript code for that.
Thanks.
Hello,
Thank you for your recommendation.
I have achieved my design using a third party accordion, pages and lists.
Perfect. Thank you for informing us.