Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Sub menu of check boxes

Well, I now simplified my structure, no grids.
Is like this now

Settings mobilecontainer/ mobilecollapsibleset_146 /mobilecollapsblock_147 /mobilecollapsblockcontent_149 / mobilecheckboxgroup_156 /mobilecheckbox_157

I use the code:

code
var index;
var text;
var mobilecheckboxgroup = Apperyio("mobilecheckboxgroup_156").find(":checked");
//console.log("checked items = " + mobilecheckboxgroup.length);
alert ("checked items = " + mobilecheckboxgroup.length);
var arr1 = [];
mobilecheckboxgroup.each(function(){
arr1.push($(this).attr("value"));
//console.log("added checkbox with value: " + $(this).attr("value"));
});
//console.log(arr1);
alert ("156-----" + arr1);
/code

put i get in the alert, the checked checkboxes from only the group which is "Food".
"checked items=1" (the one that I checked in Food)
I have also checked one under "Drink", but does not find it.

Image

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

Sub menu of check boxes

Hello,

Your current issue is complex and hard to be solved by writing code in forum's posts without code verification, which falls outside the scope of our support.
You can use our Advisory pack, please visit http://appery.io/services/

Takis
Posts: 0
Joined: Wed Oct 22, 2014 5:10 pm

Sub menu of check boxes

Well looks not so complex, I just do not know yet the proper code.
I need to iterate in each collpasbleset, iterate through checkboxes, then move to next collapasbleset and do the same...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Sub menu of check boxes

Hello!

Sorry, but it is pure custom JS which is outside the scope of Appery.io platform support. I believe you can find some examples online.

You may also purchase Advisory pack so that developers can help you with questions you have.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Sub menu of check boxes

Hi again!

Just to add...
If you want to just add many checkboxes to collapsiblesets, it is better to generate them using service.

Service should return values array which will be mapped to collapsible block. Every object should contain checkbox values array. Please take a look at sample mapping screenshot

Image

And data which is returned by service pre[
{"a":[{"text":"1", "value":"1"},{"text":"2", "value":"2"},{"text":"3", "value":"3"}]},
{"a":[{"text":"1", "value":"1"},{"text":"2", "value":"2"},{"text":"3", "value":"3"},{"text":"4", "value":"4"}]},
{"a":[{"text":"1", "value":"1"},{"text":"2", "value":"2"}]}
]/pre

Hope this helps :)

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

Sub menu of check boxes

this js put in mapping or run javascript for button?

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

Sub menu of check boxes

Hi Nisa -

This JS code is for the mapping for the appropriate properties of a component, as stated above.

Return to “Issues”