Oldestman57
Posts: 0
Joined: Thu Mar 31, 2016 9:15 pm

Hide Button by DB field string

I have a button that is used to navigate to a page to register new users.
I would like to have the button's visibility property to be controlled by a column in the user database named admin.
if the admin column for the logged in user has the string "admin" in it, set the button's visibility to true.
A null field would set it to false.
The button is not mapped to anything.
I do have a getuser service for the verify page.
What is the best approach to making this work.
Thanks for any info.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Hide Button by DB field string

Hello,

Please use show/hide methods to show/hide elements: https://docs.appery.io/v2.2.0/referen...

Return to “Issues”