ciccio
Posts: 0
Joined: Fri Jun 14, 2013 10:40 am

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

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

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

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

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

Return to “Issues”