Hello,
This is what I am trying to do in Wappler:
On a front-end page showing database fields, how can I add code that when a user with database modifying privileges is logged in, additional buttons appear on the page and allows adding data, e.g.“ADD CLIENT” or modifying database fields, e.g. “MODIFY CLIENT INFO”?
Add a Server Connection at the start of then page to retrieve the current logged in users details by reference to the security provider identity value using a simply query.
then use this as a condition for a dynamic attribute “Show” of the button
I would recommend using conditional region for elements that should be hidden based on login. They are not even visible in the DOM.
With show/hide attributes, the elements are hidden just with display:none CSS… and are visible in the DOM.