I have a check list that has names with phone numbers to be selected.
I want to store three values from each line value when user clicks submit. Each line has firstName, lastName and phoneNumber.
I have created a model (ContactDetails) that has the firstname, lastname and number strings
I have created and Array Called ContactSendList
I have created a local storage value called recipients (type:ContactSendList)
Here is what I wrote and places as a Run JavaScript when user click submit button but can't seem to see if it is working:
var contactsmobilecheckboxgroup = Apperyio("contactsmobilecheckboxgroup").find(":checked");
var arr = [];
contactsmobilecheckboxgroup.each(function(){
arr.push($(arr).val());
});
localStorage.setItem("recipients", arr);