maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Buttons' text, Options... in uppercase?

Can you show the mapping and code?

egonzalez
Posts: 0
Joined: Fri Sep 14, 2012 9:34 pm

Buttons' text, Options... in uppercase?

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'

Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Buttons' text, Options... in uppercase?

What is the value of 'isTeacher'? Maybe it's not false?

Do:
console.log(isTeacher);

egonzalez
Posts: 0
Joined: Fri Sep 14, 2012 9:34 pm

Buttons' text, Options... in uppercase?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Buttons' text, Options... in uppercase?

Ah..try mapping to 'mobilelist1' and use the same code. 'element' -- it has to be the list itself.

egonzalez
Posts: 0
Joined: Fri Sep 14, 2012 9:34 pm

Buttons' text, Options... in uppercase?

That did the trick. Thanks Max!

Return to “Issues”