Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Wright 16 posts 97 karma points
    Aug 18, 2021 @ 14:47
    Paul Wright
    0

    Clearing data from fields after submission

    Hi All,

    We've been using umbraco forms on one of our sites for a while now but someone has notice that after you've submitted the form and press the back button on the browser that the field are still completed with the content.

    just wondering if anyone has seen this and has a work around to clear the data after the form has been submitted (without affecting the data being submitted).

    Thanks

  • Alford 1 post 71 karma points
    Aug 20, 2021 @ 09:55
    Alford
    0
    1. Use document. getElementById("FORM"). reset() in Javascript to reset the form.
    2. Add an autocomplete="off" property to the HTML form to prevent possible auto-filling after form reset.

    greatpeople

  • Paul Wright 16 posts 97 karma points
    Aug 23, 2021 @ 11:00
    Paul Wright
    0

    would that not reset the form before submission or would you need to delay the reset request?

Please Sign in or register to post replies

Write your reply to:

Draft