Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

How to pass values of checked boxes to another page?

Hi Nisa -

Please follow Yurii recommendations above, you will need to read values of selected boxes, after that store them in local storage and pass them to DB service update invocation.

Nisa Khalid
Posts: 0
Joined: Tue May 05, 2015 1:36 pm

How to pass values of checked boxes to another page?

this is my code,please check it for me and the next step i have to do?
var name_arr = [];
checkboxgroup = $('[name="chckbox_4yo"]');
for (var i = 0; i < checkboxgroup.length; i++)
{ console.log(i);
var currentCheckBox = jQuery(checkboxgroup);

if (currentCheckBox.length === 0)
{
alert("Please select a category!");
return;

}

else if (currentCheckBox.length 3 )

{
alert("do not choose more than 3!");

}
else
{
Apperyio.navigateTo("UploadPage", {});
}

Code: Select all

 var currentInput = currentCheckBox.find("input"); 
 name_arr[i] =  
 { 
     "name": currentInput.val(), 
     "value": currentInput.prop("checked") 
 }; 

}

Apperyio.storage.nameArray.set(name_arr)

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

How to pass values of checked boxes to another page?

Hello Nisa,

Unfortunately this is something outside the scope of standard Appery.io platform support.

Please try to debug your project http://devcenter.appery.io/documentat...

You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).

Return to “Issues”