How to save and retrieve form data with svelte

I am using framework7 svelte and would like to be able to save and get form data as described at Form Storage. However this does not seem to apply to svelte and I have failed to find an answer in the forum or the docs.


What did you try to do?

You can use f7 reference on page where you want to access form methods.

For example:

  <form id="#myform">
    <Link on:click={getData}>Get</Link>
import {f7} from 'framework7-svelte';
function getData(){

You can also use form reference by using svelte binding.

<form bind:this={form} />

May this will help you :slight_smile: