facebook

Save Information in forms?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #336028 Reply

    fbod383
    Member

    I built a page that has a form for users to fill out with emergency contact information and other info, yet when the app is closed the info is erased. is there a way to save this info?

    #336033 Reply

    Brandon
    Member

    You can use local storage to read and write the information.

    localStorage.setItem(key','value');

    so you would need something like this, note this is off the top of my head and not tested.

    
    //Save Info
    localStorage.setItem('firstName',$('#m1-formname-fieldName').val());
    
    //Get info
    $('#m1-formname-fieldName').val(localStorage.getItem('firstName'))
    
    #336050 Reply

    @fbod383,

    Just to complement CincyPlanet’s help, I leave you the link to our Localstorage Demo: http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2251

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Save Information in forms?

You must be logged in to post in the forum log in