Page 2 of 2
Buttons' text, Options... in uppercase?
Posted: Tue Oct 09, 2012 3:01 am
by maxkatz
Can you show the mapping and code?
Buttons' text, Options... in uppercase?
Posted: Tue Oct 09, 2012 3:52 am
by egonzalez
I am using the code you provided above.
precode
if (value == 'false'){
element.hide();
}
/code/pre
Here is an image of the mapping. I mapped the same value to a label component to be sure it was 'false'
Buttons' text, Options... in uppercase?
Posted: Tue Oct 09, 2012 3:54 am
by maxkatz
What is the value of 'isTeacher'? Maybe it's not false?
Do:
console.log(isTeacher);
Buttons' text, Options... in uppercase?
Posted: Tue Oct 09, 2012 4:32 am
by egonzalez
For some reason the console.log isn't working for me but I mapped the (isTeacher) to a label and loaded the page to see what the value was. It is showing false. See attached image.
Buttons' text, Options... in uppercase?
Posted: Tue Oct 09, 2012 4:36 am
by maxkatz
Ah..try mapping to 'mobilelist1' and use the same code. 'element' -- it has to be the list itself.
Buttons' text, Options... in uppercase?
Posted: Thu Oct 11, 2012 1:06 am
by egonzalez
That did the trick. Thanks Max!