How to pass values of checked boxes to another page?

This forum contains topics that were moved from Get Satisfaction
Branden
Posts: 0
Joined: Sun Nov 03, 2013 12:10 am

How to pass values of checked boxes to another page?

Post by Branden »

I appreciate your attention to my comment. :)

I think I'm all set with this issue. I'm now able to capture the values of the selected checkboxes, save them in a local array, and am able to retrieve those values on the next page.

Thanks for your assistance!

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

How to pass values of checked boxes to another page?

Post by Nisa Khalid »

hi branden? may i have your email? i need some help from you

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

How to pass values of checked boxes to another page?

Post by Nisa Khalid »

how can i capture value of check box and want to save it in database collection?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to pass values of checked boxes to another page?

Post by Yurii Orishchuk »

Hi Nisa,

You can get checked value with following JS code:

pre

//where "checkBoxName" is your checkbox component name.
var checkBox = Apperyio("checkBoxName").find('input[type="checkbox"]');

var checked = checkBox.prop("checked");

console.log("checked = " + checked);

/pre

Then you can pass this value to the update/create service in appropriate field.

Regards.

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

How to pass values of checked boxes to another page?

Post by Nisa Khalid »

can you give example how to pass the value using this code? i still don't get it

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to pass values of checked boxes to another page?

Post by Yurii Orishchuk »

Hi Nisa,

Here is common example:

1 Get value from checkBox.

2 Convert received value to to text that you want to store in DB and store it to the storage.

3 Add create/update service on the page.

4 Invoke service on the event you need(for example button click).

5 Open "Before send" mapping and link storage from 2nd step to needed request service parameter(where you want to store this information).

Please pass following tutorial to understand how to work with update/create services https://devcenter.appery.io/tutorials...

Regards.

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

How to pass values of checked boxes to another page?

Post by Nisa Khalid »

how can i Convert received value to text?

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

How to pass values of checked boxes to another page?

Post by Nisa Khalid »

how can i Convert received value to text?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to pass values of checked boxes to another page?

Post by Evgene Karachevtsev »

Hello Nisa,

This can be done via JS, these links may be useful for you:
http://stackoverflow.com/questions/11...
https://getsatisfaction.com/apperyio/...

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

How to pass values of checked boxes to another page?

Post by Nisa Khalid »

sorry i don't get it, my situation right now, i have a group of check box and the user are allowed to choose up to 3 box only.after the user have check the value i want to take the value and pun into database column named categoryName,in the column categoryName will store the item has been checked in the checkbox,any example of this?

Post Reply