Survey on Mobile

PeeyushBansalPeeyushBansal IndiaCommunity Member Wizard ✭✭✭✭✭
edited October 2019 in Custom Code

Survey on Mobile

In some of iphones my survey is appearing as a desktop view with lot of scrolling. In some iphones survey page go to bottom of question and have to scroll up...

Is there a way to fix it?

Comments

  • MsIreenMsIreen FinlandCommunity Member, XMPN Member Superuser ✭✭✭✭

    same here, will follow this thread

  • TomGTomG Raleigh, NCCommunity Member Wizard ✭✭✭✭✭

    We just noticed this last week. I think it is the version of Safari included with iOS 13. It is a major usability issue. The other thing we noticed was the powered by Qualtrics link opening when we thought we were clicking the next button. My stop gap solution was to add this to the survey header:

    <script>
    Qualtrics.SurveyEngine.addOnReady(function() {
        jQuery("#Plug a").attr("href", "javascript:void(0)");
        jQuery("#Plug a").click(function(e) { e.preventDefault(); });
        setTimeout(function() { window.scrollTo(0,0); },200);
    });
    </script>
    

    It fixes the majority of the issue, but probably not completely. I'm not 100% sure that the scrollTo has to be delayed, but was playing it safe in case there is a conflict with other scripts.

  • Hannah26Hannah26 Qld, AustraliaCommunity Member Qubie ✭

    I am having this same issue with my survey. If I add this to the survey header, will it affect the desktop display too?
    Thanks!

  • TomGTomG Raleigh, NCCommunity Member Wizard ✭✭✭✭✭

    It will apply to desktop, but doesn’t do anything harmful. It scrolls to the top of the window (where it should/will be anyway) and disables the “powered by Qualtrics link”.

Sign In to Comment