Page 1 of 1

showing hiding labels on a dynamic list on the base of the text of another label in the same list item

Posted: Wed Apr 16, 2014 3:34 pm
by ciccio

i have a list that is built through a rest sevice.
in each list item i have a grid with several colums and in each column a label

i would like h to set not visible a label (L1) in a list item if the text of another label (L2) in the same list item has some text if not i would like to set the label L1 to visible and change the text color of the label L2


showing hiding labels on a dynamic list on the base of the text of another label in the same list item

Posted: Wed Apr 16, 2014 6:02 pm
by Maryna Brodina

Hello!

Please read manual about mapping
http://docs.appery.io/documentation/r...

Your javascript method should be like this
prevar labelText1 = Appery('mobilelabel_7').text();
if (labelText1 == value){
...
element.css('color', '#1d650e');
}else{
...
}
return value/pre