Page 2 of 4

element.hide(); no longer working

Posted: Thu Mar 14, 2013 10:25 pm
by Kateryna Grynko

You have a mapping from parameter "archive_on" to "Visible" property.
As I can see parameter "archive_on" has boolean value.
Are you sure Response параметр "archive_on" has "true" or "false" value?


element.hide(); no longer working

Posted: Thu Mar 14, 2013 11:22 pm
by SteveLacy

yep. It returns either a null, true or false.


element.hide(); no longer working

Posted: Fri Mar 15, 2013 8:16 am
by Maryna Brodina

Hello! You have your mapping set to Visible property and JS should return line "true" or "false". If you want to hide component you should execute return "false";


element.hide(); no longer working

Posted: Fri Mar 15, 2013 1:44 pm
by SteveLacy

Yep. when it returns false it doesn't work. using firebug I see it only changes the display type to block (doesn't hide it).


element.hide(); no longer working

Posted: Fri Mar 15, 2013 2:44 pm
by Maryna Brodina

Could you please share your app with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a?


element.hide(); no longer working

Posted: Fri Mar 15, 2013 4:00 pm
by SteveLacy

I've shared the app called "hide_no_worky" with a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a. The one image named "img_worky" has the URL mapped to the image asset field and the "live_on" is mapped to the visibility field. If you test the web service, you'll see the values returned (you'll see live_on returns "false"). The image shows up fine, but it doesn't hide properly. Let me know what you find.

Thanks so much for your help. It's greatly appreciated.


element.hide(); no longer working

Posted: Fri Mar 15, 2013 4:05 pm
by Kateryna Grynko

Hello Steve,
I'll update when we have it tested.


element.hide(); no longer working

Posted: Fri Mar 15, 2013 8:04 pm
by Kateryna Grynko

In mapping, replace the JavaScript code with:
codeif (value === 'false'){
return false;
} else {
return true;
}/code


element.hide(); no longer working

Posted: Fri Mar 15, 2013 8:17 pm
by SteveLacy

That fixed it! Awesome. Thanks!


element.hide(); no longer working

Posted: Sun Jun 23, 2013 2:26 pm
by Shahrukh Badar5891231

$(element).hide();

it works for me.