0
rant1ng
6y

testing a form and having to fill in the info every single time I change the code - gross

Does anyone know of a way to refresh a form (ctrl+F5 in chrome) while keeping the data?

Comments
  • 1
    You could create yourself some kind of JS bookmarklet or browser extension that stores current form data (pay attention to stuff like hashes and stuff though) in the session storage and restores it on page load.
  • 2
    Write a JS snippet to fill out the fields and keep pasting it after refreshing. You could even include that in your code if you have access to the frontend. Or just use the browser's autofill feature.

    Duh.
  • 2
    @Root
    omg... how did i not think to use autofill, thanks
  • 1
    @rant1ng 😋
  • 1
    @Root beat me to it
    Auto fill saves lives.
  • 0
    In some packages you can preload the data. I preload the ractive data object for example. Then I just clear it out before going to prod.
Add Comment