button show or hide does not work.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

button show or hide does not work.

#1

Postby xren » Wed Oct 02, 2013 6:55 pm

Hi,

I met these problem a couple of times.

I would like to control a couple of buttons' show and hide depending on the actions user taken.
e.g. There are "Add", "Save" and "Cancel" button.
At the beginning - only "Add" button show
After user click "Add" - then some panel show and the "Save" and "Cancel" Button show the "Add" hide.
After User click Save/Cancel - the "Add" button show and "Save" and "Cancel" hide.

However, after I click the Add button. all button hide. even my code set the other two show.

What's wrong with the way I control the buttons?

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu Oct 03, 2013 7:48 am

Hard to say from your description. One thing to bear in mind is that a control - i.e. any control, including buttons - is hidden if that control or any of its parents are hidden. Some people get confused by this. Say for example that you put your three buttons in a Panel Control and you mark that as hidden; then the buttons will always stay hidden even though you might show the individual buttons. The only way to make them visible in this example is to remove the hidden status from the Panel Control i.e. show it. Display only also works in the same way as this.

I don't know if this is your problem. Other than this, there aren't any complications.
0 x


Who is online

Users browsing this forum: No registered users and 29 guests