Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I have been using yamlforms and webforms 8.x since the inception of the project. A bug that has always persisted is that mobile users have inconsistently been redirected to the first page when clicking the next button.
Little information about my form:
- 145 fields
- 25 pages
- several custom redirects via hook_form_alter() but none redirect to the first page
I now have a substantial amount of Google analytics data proving this is an actual bug my users are experiencing.
@jrockowitz we spoke at Drupalcon about this very issue but I didn't do a good job writing down what you said.
Proposed resolution
N/A
Remaining tasks
Determine
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#4 | webform.webform.test_form_wizard_long_300.yml | 26.05 KB | jrockowitz |
#3 | Screen Shot 2017-07-17 at 3.53.13 PM.png | 153.95 KB | robpowell |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedIs there anyway to determine from google analytics which mobile browser is having issues with multi step forms.
Comment #3
robpowellstill learning the ins and outs of Google Analytics and Google Tag manager. I can show the most popular devices but not the browser.
Comment #4
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedWe need to be able to replicate this issue using an example form and an iOS simulator.
The webform_test.module includes a very large multstep form which can be used for testing. (see attached)
Comment #5
robpowellThanks for the form, so next steps are to install this on my server and test with some IOS simulator until we can get it to "pop" ie reset to page 1? Any simulators you suggest?
Comment #6
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedWhat theme are you using? This issue #2895688: Signature Pad 'Reset' button sends user back to the previous page on multistep wizard webforms. would be causing your problem, if you are using the Bootstrap theme
Comment #7
robpowellI am using bartik.
Comment #8
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commented@robpowell I was thinking about this issue and one educated guess is that your form cache bin is getting filled up while users are entering data in the multi-step form and this causing form submission data to be lost.
On a multiple-step form, the entire form and submission are being cached between requests. If the form cache bin is filled the oldest cached data will be deleted.
What are you using for caching? Memcache, Redis, or Database caching?
You will need to examine the cache bin's memory usage on production and see how much space is available.
You might be able to replicate the issue by opening multiple incognito browser windows and partially completing a bunch of forms. At the very least, you might be able to determine if your large multi-step webform is consuming a lot of memory.
Comment #9
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commented@robpowell If you enable anonymous saving of drafts it should prevent this unexplainable issue from happening.