Forums › Forums › Search & Filter Pro › Error: May have only 1 search form per post type
Tagged: V3
- This topic has 3 replies, 2 voices, and was last updated 4 years, 2 months ago by Trevor.
-
Anonymous(Private) October 27, 2020 at 7:34 pm #264325
I have multiple forms setup for a custom post type. My reasoning for doing this is that we need to display the form in one way on mobile (dropdown no combobox) and in another on desktop/tablet (combobox).
If the user comes to the search page on mobile, they get the mobile version of the form. The issue that I am seeing in the backend is and error stating that we can have only one form per post type.
Is there a technical reason for this error message or can we safely ignore in our circumstances?
Trevor(Private) October 28, 2020 at 8:01 am #264360If it all works, I would ignore it it for now. BUT …
… and this will change with V3 (due in a month or two), for now, when referring to the results page, having a cloned/duplicated form (having more than one instance of the same form), or multiple different forms, will potentially be an issue, as doing this can mean that they don’t work together and often will conflict with each other. Just be aware that this is possible (likely), so if you have problems with the results not working, that might be why. Normally, we suggest only one form instance on the results page.
You CAN have more than one form on any page other than the results page.
Anonymous(Private) October 28, 2020 at 12:07 pm #264402OK I do understand that multiple forms on one page would be an issue. In this case, we need the ability to have different form setups based on mobile vs desktop/tablet. For example, we need the combox on desktop/tablet and a dropdown on mobile. Is there a different way to achieve this?
-
AuthorPosts