The label changes color depending on whether a static label, with text "" is displayed or not. The label is inside a radio group. The radio group elements are mapped from a query. If the query returns no results, label is not equal to "", and the color of a different label is supposed to change colors.
While the code properly populates the value of the static label (mobilelabel_169), it isn't recognizing when the static label is equal to "".
This is what I have so far:
var title1 = Appery('mobilelabel_169').text();
if (title1 == "") {
Appery("title_confirmed").css('color','#333333');
} else {
Appery("title_confirmed").css('color','#DCDCDC');
Code: Select all
return;
}
Thank you!