Page 3 of 3

Sub menu of check boxes

Posted: Fri Nov 21, 2014 10:34 am
by Takis

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


Sub menu of check boxes

Posted: Sat Nov 22, 2014 11:53 am
by Alena Prykhodko

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/


Sub menu of check boxes

Posted: Sat Nov 22, 2014 5:22 pm
by Takis

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...


Sub menu of check boxes

Posted: Sun Nov 23, 2014 8:40 am
by Maryna Brodina

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.


Sub menu of check boxes

Posted: Sun Nov 23, 2014 3:29 pm
by Maryna Brodina

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 :)


Sub menu of check boxes

Posted: Mon Jul 13, 2015 10:41 pm
by Nisa Khalid

this js put in mapping or run javascript for button?


Sub menu of check boxes

Posted: Tue Jul 14, 2015 6:52 am
by Illya Stepanov

Hi Nisa -

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