Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

element.hide(); no longer working

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?

SteveLacy
Posts: 6
Joined: Fri Apr 20, 2012 11:54 pm

element.hide(); no longer working

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

element.hide(); no longer working

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";

SteveLacy
Posts: 6
Joined: Fri Apr 20, 2012 11:54 pm

element.hide(); no longer working

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

element.hide(); no longer working

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

SteveLacy
Posts: 6
Joined: Fri Apr 20, 2012 11:54 pm

element.hide(); no longer working

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

element.hide(); no longer working

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

element.hide(); no longer working

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

SteveLacy
Posts: 6
Joined: Fri Apr 20, 2012 11:54 pm

element.hide(); no longer working

That fixed it! Awesome. Thanks!

Shahrukh Badar5891231
Posts: 0
Joined: Sun May 26, 2013 6:39 pm

element.hide(); no longer working

$(element).hide();

it works for me.

Return to “Issues”