Forum Discussion

olivierchemin-2's avatar
olivierchemin-2
Community Member
25 days ago

Preventing the browser from storing previously typed text in a text entry zone

Hi,

 

Is there a way of preventing the browser from storing previously typed text in a text entry zone?


Whether the module is consulted on review or on an lms?


Can this be configured on storyline or does it depend on the browser alone?

 

Thanks in advance,

  • SBP_Inc's avatar
    SBP_Inc
    Community Member

    Changing the reset functionality of the slide to Reset (vs Resume) work for you?

  • Nedim's avatar
    Nedim
    Community Member

    If the reset functionality doesn't help, as suggested by SBP_Inc, you might want to set the autocomplete attribute of the text entry field to 'off' using JavaScript to prevent the browser from suggesting previously typed values. Something like:

    const textInputs = document.querySelectorAll('.acc-textinput');
      textInputs.forEach((input) => {
        input.setAttribute('autocomplete', 'off');
      });

    However, I'm not entirely sure if this is related to your issue.