Shuffle widget re-shuffles question after refreshing page

  • Profile Image
    docente.andy
    Asked on October 24, 2020 at 03:36 AM
    how can I avoid that shuffle widget works twice o more times before answer submission? It happens when refresh (F5) before the submission.
  • Profile Image
    Vanessa_T
    Answered on October 24, 2020 at 03:39 AM

    Please note that the form does not have an auto save functionality as such, it is not advisable to refresh the page and it is an expected behavior that all scripts are re-initialized including the shuffle widget.

    May I ask why you need to refresh the page before submission?

  • Profile Image
    docente.andy
    Answered on October 24, 2020 at 04:00 PM

    I do not need refresh before submissions, but I am a teacher and I want to avoid that students can choose the ten questions that they consider easier before submission (using F5).

  • Profile Image
    JohnRex
    Answered on October 24, 2020 at 06:21 PM

    Unfortunately, this is no option for this in the widget. Note that the widget works every time the form is loaded/reloaded.

    What's possible I think is to disable f5 or the reload button of the browser. You can use custom JS or JQuery scripts to achieve this, however, this might require familiarity with the said programming languages. So what you'll need to is to embed the form into your webpage and on that webpage, add the custom codes to disable page reload or f5. Here's a link for your reference: https://stackoverflow.com/questions/2482059/disable-f5-and-browser-refresh-using-javascript/7997282#7997282