New Bug Encountered: Action Button ignores View Show_if expression

behavior
(Eric Schwartz) #1

A Show_if expression on View 1 hides the view from certain groups of users, based by querying a group members table.
Action button on a table visible through View 2 displays View 1.
A user who is unable to see View 1 due to the Show_if expression, can navigate to View 2 by clicking the Action button on View 1.

Can the Action Button ‘Only if this condition is true for table records’ condition, be manipulated to affect a Show_If expression, or is there another way to achieve this?

(Aleksi Alkio) #2

@Eric_Schwartz You could use for example LINKTOFILTEREDVIEW for that purpose.

(Steve Coile) #3

A view’s Show if expression only affects the view’s display in the main menu, along the bottom button bar of the screen, or in other locations that AppSheet would display it. An action is not a display element, so the display properties of a view play no role in an action’s behavior. In other words, the action’s Only if this condition is true property cannot be manipulated to affect the Show if expression of a view, nor vice versa. You will have to configure each to independently decide whether the current user is eligible to view/visit view 1.

(Eric Schwartz) #4

Much thanks. Done!

1 Like
(Eric Schwartz) #5

“This action is available only for rows of the table that satisfy this condition”, confused me. I read this as the Y/N needed to relate to columns in the current table. Ignoring that, the Y/N result when querying other tables achieved the required result. Thanks.

1 Like