Page 1 of 2

Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 1:45 pm
by Peter Abbruzzese

How to make it so only the checked items save to local storage not all the check box items?

Image


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 2:10 pm
by Evgene Karachevtsev

Hello Peter,

Please clarify, how do you save them now? This link might help:
https://getsatisfaction.com/apperyio/...


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 2:33 pm
by Peter Abbruzzese

Well I only want the checked items to be sent to the next page of my app. But when you check off one of the items all of the items get saved to local storage and sent to the 2nd page like this. I only want the checked off items to be sent to the 2nd page.

Image


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 3:18 pm
by Peter Abbruzzese

Well I only want the checked items to be sent to the next page of my app. But when you check off one of the items all of the items get saved to local storage and sent to the 2nd page like this. I only want the checked off items to be sent to the 2nd page.


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 5:43 pm
by Kateryna Grynko

Hi Peter,

Here is how to save selected values of mobilecheckboxgroup named 'mobilecheckboxgroupName':
prevar mobilecheckboxgroup = Apperyio("mobilecheckboxgroupName").find(":checked");
var arr = [];
mobilecheckboxgroup.each(function(){
arr.push($(arr).val());
});
localStorage.setItem("arr", arr);/pre


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 5:45 pm
by Peter Abbruzzese

How do I use that code?


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 5:54 pm
by Kateryna Grynko

Peter,

You would need to run it before navigating to the second page.


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 6:01 pm
by Peter Abbruzzese

is it javascript or CSS?


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 6:19 pm
by Kateryna Grynko

Peter,

JavaScript. Use an appropriate event action to run it.


Check Boxs not working with local stoage

Posted: Wed Jul 02, 2014 7:02 pm
by Peter Abbruzzese

it did not work.