Page 1 of 1

hide component

Posted: Tue Oct 01, 2013 12:32 pm
by Michael4771079

Hi,
I have 2 collapsible blocks mobilecollapsblock_92, and mobilecollapsblock_188.
there is a service running to each block.

I am looking to hide one of the blocks on success of the others service


hide component

Posted: Tue Oct 01, 2013 12:43 pm
by Kateryna Grynko

Hi Michael,

On Service Success event you can run the JS code. Choose the code you like more here: https://getsatisfaction.com/apperyio/...


hide component

Posted: Tue Oct 01, 2013 1:04 pm
by Michael4771079

Hi,
I used this code on success of service, $(mobilecollapsblock_188).hide();
but it throws an error, its porb. the wrong code,
s/s
Image

Image


hide component

Posted: Tue Oct 01, 2013 1:18 pm
by Kateryna Grynko

Hi Michael,

To check if the component is visible or hidden run:
codeAppery("mobilebutton_12").css('visibility')/code
To show/hide use:
codeAppery("mobilebutton_12").hide();
Appery("mobilebutton_12").show(); /code