Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Need a trigger to go off to make one button visible and another invisible

Basically, whatever action they take next, I want it to set one button to visible true and another button to visible false. Whether clicking Back or selecting a different item in the list, etc... I need it to reset the visibility on two buttons.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Need a trigger to go off to make one button visible and another invisible

Hello Dave,

Yu should use such code:

codeAppery('mobilebutton_2').show(); // show button with name mobilebutton_2
Appery('mobilebutton_2').hide(); //- hide button with name mobilebutton_2 /code

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Need a trigger to go off to make one button visible and another invisible

Ok, but where do I put the code so that no matter what they do next, it triggers? Whether they swipe, tap, click,... no matter... Is there such a function to make that happen? Thanks Evgene.

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Need a trigger to go off to make one button visible and another invisible

Can I hide a grid in the same fashion? Is it called a grid?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Need a trigger to go off to make one button visible and another invisible

Hello,

You can use the same code to show/hide grid component.
You can use any events to execute this code. Take a look at below link to see the events list:
http://docs.appery.io/documentation/w...

Return to “Issues”