Page 1 of 1

How to Checking null fiels to hide items

Posted: Thu May 24, 2012 9:15 pm
by jonlavigne

I have an app which can return different types of media in a feed which I want to display. How can I check if my field is Null or not and if so hide or show the element?
I use a list, in the list I have some labels, image and video. Sometimes I want to show the image, sometimes the image is null I want to show a text and hide the image component.
Thanks
Jonathan


How to Checking null fiels to hide items

Posted: Thu May 24, 2012 9:24 pm
by maxkatz

When you map the service to a component, you can check in mapping if the value is empty or null. If yes, you can hide it like this:

code
element.hide();
/code

http://help.tiggzi.com/documentation/...


How to Checking null fiels to hide items

Posted: Thu May 24, 2012 9:41 pm
by jonlavigne

thanks a lot!