Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

lists in local storage

Hi,
I have a form with in an app with input components where the user enters the pickup and drop off point info, the info is stored in local storage and on click the info is sent through sendgrid, is there a way to build a clickable list of pickup and drop off points that the user has previously entered so as the user can click on a previously entered value, and the value is sent in the email

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

lists in local storage

You would need to store all drop off and pick up locations in local storage. You could save them in one propert as an array:

{"pickup1", "pickup2"...}

or as separate variables

pickup1
pickup2

then you would need to create the selects in runtime.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

lists in local storage

Thanks Max,

pickup and drop off is stored in local storage in order for email to work,

I was hoping to build a dropdown list of previous pickups that the user could select and for the value to be read in the email, do you have an examples that might point in the right direction, also need tutorial on runtime,

cheers

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

lists in local storage

Here is an example of building a list: http://help.gotiggr.com/getting-start...

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

lists in local storage

Max,
I understand this example but in this app we dont know where anyone is comming from or going to, so we cant build a list for further use, the end user builds the list as he uses the app,

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

lists in local storage

You could check every time the page is loaded if anything is saved in local storage for that user. If yes, create the drop downs.

Return to “Issues”