Framework7 - Form Storage



Description

Form storage stores and parses forms data automatically on Ajax loaded pages. When the page gets loaded again, the Framework7 will parse this data and automatically fill the form.

S.No Form storage types & Description
1 Enable form storage

To enable form storage, you need to add store-data class and id attribute to form.

2 Form storage JavaScript API

Form storage can be achieved by using JavaScript API.

Form storage JavaScript Events

The following table shows the form storage JavaScript events used in Framework7 −

S.No Events & Description Target
1

formFromJSON

This will be triggered after formFromJSON method invoked on form to fill the form fields.

Form Element
2

formToJSON

This will be triggered after formToJSON method invoked on form to convert the form fields to JSON.

Form Element
framework7_forms.htm
Advertisements