Search found 470 matches

Go to advanced search

by Ellen Schlechter
Thu Jan 16, 2020 3:07 am
Forum: Issues
Topic: Save checkbox values to local storage
Replies: 29
Views: 10398
 
Jump to post

Save checkbox values to local storage

Maybe my code is completely wrong then...I'm not really sure. I just need something that will loop through a grid and read a label and an input so I can save them to local storage.

by Ellen Schlechter
Wed Jan 15, 2020 3:25 am
Forum: Issues
Topic: Save checkbox values to local storage
Replies: 29
Views: 10398
 
Jump to post

Save checkbox values to local storage

My next challenge involves a similar scenario except my grid isn't in a checkbox...it is on its own. I have tried using this code but it doesn't loop through all of the grid items. prevar checkboxValues = []; $(document).each(function(){ var C = Apperyio("mobiletextinput_896")&...
by Ellen Schlechter
Thu Jan 09, 2020 10:59 pm
Forum: Issues
Topic: Save checkbox values to local storage
Replies: 29
Views: 10398
 
Jump to post

Save checkbox values to local storage

Let me try explaining another way! If you look at the screenshot, I have label A (cow/calf) and label B (ID). If the box is checked, I would like to take the value of label A and label B and save it to a local storage object that is formatted in the same way as how it appears in the screenshot (wher...
by Ellen Schlechter
Sun Jan 05, 2020 10:28 pm
Forum: Issues
Topic: Save checkbox values to local storage
Replies: 29
Views: 10398
 
Jump to post

Save checkbox values to local storage

After moving forward, I found that I need to have to use both models and storage because I need more than one value per item. However, I have run into a few different issues now. I have formatted my LSV as you can see in the screenshot below. https://d2r1vs3d9006ap.cloudfront.net/s3_images/1819957/S...
by Ellen Schlechter
Sun Jan 05, 2020 3:56 pm
Forum: Issues
Topic: Save checkbox values to local storage
Replies: 29
Views: 10398
 
Jump to post

Save checkbox values to local storage

Thank you. I only mapped the values to "text" vs "value".

by Ellen Schlechter
Sat Jan 04, 2020 5:40 pm
Forum: Issues
Topic: Save checkbox values to local storage
Replies: 29
Views: 10398
 
Jump to post

Save checkbox values to local storage

Hi there, I am trying to get the text values of all of the checked-checkboxes and after researching the Appery.io forum, I found that this is what gets me closest to achieving that goal. prevar checkboxValues = []; $("input[type='checkbox']:checked", $.mobile.activePage)&am...
by Ellen Schlechter
Thu May 16, 2019 2:41 am
Forum: Issues
Topic: Limit items in object
Replies: 11
Views: 2074
 
Jump to post

Limit items in object

Thank you. I understand now. Using arr that you defined it works great. arr needs to be dynamic, however, so I tried to define by getting an object out of local storage and instead of returning an updated object, it just returns what is in the screenshot. https://d2r1vs3d9006ap.cloudfront.net/s3_ima...
by Ellen Schlechter
Tue May 14, 2019 9:14 pm
Forum: Issues
Topic: Limit items in object
Replies: 11
Views: 2074
 
Jump to post

Limit items in object

I'm sorry, I don't specifically understand that code so I am having trouble implementing it. Using the code you last provided, does that automatically add a new item to my object? It didn't seem to add it to shottolist, but it essentially needs to make it to shotprelist but I believe I can do that m...
by Ellen Schlechter
Sun May 12, 2019 2:18 pm
Forum: Issues
Topic: Limit items in object
Replies: 11
Views: 2074
 
Jump to post

Limit items in object

This screenshot shows the value of shottolist. I want to prevent there from being a duplicate item in the object. Since I am limiting it to 5, I want to make sure that every item is unique instead of having duplicates. So for example, I would allow "ss" and "23" to go through and...
by Ellen Schlechter
Wed May 08, 2019 11:01 pm
Forum: Issues
Topic: Limit items in object
Replies: 11
Views: 2074
 
Jump to post

Limit items in object

Thanks that worked perfectly. My next question: I am trying to search this object saved in storage for certain values and I want it to return true or false. This is what I have tried: prevar current = localStorage.getItem('shottolist') console.log("result " + current&#4...

Go to advanced search