Forums › Forums › Search & Filter Pro › Autosubmit not working in mobile view (regardless of device)
Tagged: autosubmit, mobile view
- This topic has 12 replies, 3 voices, and was last updated 7 years, 8 months ago by Anonymous.
-
Anonymous(Private) March 6, 2017 at 6:45 pm #94995
I was testing my results page on my LG G4 phone, and noticed that the autosubmit of dropdown menus doesn’t work. You have to make the selection, then refresh the page to show the results.
Thinking it might be device-related, I tried it on my desktop (Mac OS X) browser (Chrome), shrinking the browser down to mobile size, and got the same result.
I then tested it on my desktop in Safari and Firefox, both in mobile-szed view, and got the same result.
So, it seems to be viewport size-related, not device-related.
I’m using WP 4.7.3 and the theme is a child of Divi. If you’d like to see the page in question, it’s under password protection, but I can provide it privately.
Ross Moderator(Private) March 6, 2017 at 9:33 pm #95034Do you see the same issue on our demo site?
http://demo.designsandcode.com/sfpro-movie-reviews/
What happens when you test with a clean version of Divi (assuming you are using a child theme)?
Thanks
Anonymous(Private) March 7, 2017 at 12:37 pm #95155I do not see the same issue on the demo site. I have resolved the issue, actually, but I’m not sure why it’s fixed.
I had this page set up to use two different versions, one for desktop and one for tablet/phone. I did this because default is for the search form to be on the bottom in tablet/phone view, but I wanted it to be on the top. Divi makes it easy to do this by simply creating different modules within the page, and then selecting whether they should be hidden or shown depending on viewport.
The modules I created to be visible only on tablet/phone are the ones where the autosubmit did not work. When I deleted this module and reverted to using the same view for every screen size, it worked properly again.
So, not sure if this is a Divi issue or a plugin issue. Can you advise?
Thanks
Trevor(Private) March 7, 2017 at 12:44 pm #95158You had two different forms on the same page in different locations, both with auto submit on?
Both forms would have been on the page, but one would be hidden, but still there.
What was different that you could not put the same form twice on the same page? Maybe the appearance might need to be different (maybe even fields hidden), but that can be achieved with targeted CSS.
Anonymous(Private) March 7, 2017 at 12:52 pm #95162You had two different forms on the same page in different locations, both with auto submit on?
Correct.
Both forms would have been on the page, but one would be hidden, but still there.
Correct.
What was different that you could not put the same form twice on the same page? Maybe the appearance might need to be different (maybe even fields hidden), but that can be achieved with targeted CSS.
The difference, as I mentioned above, is that in tablet/phone view, I have set it up so that the search form is shown on the top, above the results, instead of below the results (which is the default positioning). Divi is probably using CSS to achieve this effect, but they have added checkbox functionality to their modules so that instead of writing media queries, etc., it’s possible to just check a box that says “Hide this block of text in tablet view” or whatever you want to do. They’re just trying to make it easier for people who don’t know how to write media queries or use CSS.
I will try writing my own media queries and see if that resolves the issue. I’ll let you know what I find out.
Trevor(Private) March 7, 2017 at 1:11 pm #95170That wasn’t what meant about what was different about the forms. Divi’s methodology and tick boxes are fine.
I wondered WHY you had two different forms (as in they have different ID’s)? Why not sue the same form twice (i.e. have its shortcode twice, in the two locations you need it in?
Anonymous(Private) March 7, 2017 at 1:26 pm #95179Yes, there was always only one form design on the page–the same form, with the same ID, used twice (once for desktop view, once for phone/tablet view). I am in fact using shortcodes, with the results showing in the main body of the page, and the search form showing in the sidebar. (It’s the sidebar that I was trying to have show on top of the page, rather than on the bottom, in phone and tablet view.) The results are always correct. And I should point out that the filtering always works even when the autosubmit doesn’t work. It’s just that in phone/tablet view, you have to set your conditions in the search form, then refresh the page.
Trevor(Private) March 7, 2017 at 1:28 pm #95181Could you try something then? Just an idea.
Make a duplicate for the form (hover over the form name and you will see the option. Leave the form shortcode as it was for the desktop form and the results. ONLY for the tablet location, use the other form shortcode. Ignore the results shortcode for that form.
-
AuthorPosts