Parsing my data ... I cannot get Appery to display what the User has chosen...
Alex,
I see you have changed some variable names from origin.
And that's why you have this problem.
I've fixed it and here work code:
pre
var checkedItemz = [];
//Note you need replace "mobilecheckboxgroup_38" with your checkboxlist component name.
var checkedItemElements = jQuery('[dsid="checkboxgroup"] input[type="checkbox"]:checked');
//Iterate through checked items.
for(var i = 0; i < checkedItemElements.length; i++){
var checkedItem = jQuery(checkedItemElements);
var checkedText = checkedItem.closest("span").find("label").text();
var checkedValue = checkedItem.val();
//Just out this value to browser console. Please check out it to see results.
console.log("checkedItem[" + i + "] = " + checkedValue);
//Here you can use "checkedValue" JS variable as you need.
checkedItemz.push({text: checkedText, value: checkedValue});
}
localStorage.setItem("checkedItemsLSV", JSON.stringify(checkedItemz));
var checkedItemsLSVValue = localStorage.getItem("checkedItemsLSV");
var outText = "";
for(var i = 0; i < checkedItemz.length; i++){
outText += checkedItemz.text + " " + checkedItemz.value + "";
}
//Note you should replace "labelName" with your label name.
Apperyio("label_NGSS").text(outText);
/pre
Regards.