I have two tables. One produces and logs messages “Notification Log”. The other produces and logs responses “Response Log”. The problem i have is getting one view to stop showing a button “Got the message” after a response log is generated.
I have a form “new message” that logs in the “notification Log” table.
I have users viewing this list of messages - from the notifications log table. The use clicks a button “Got the message” to let the admin know they received the message.
The problem i have is, i cannot figure out how to make that action button do several things:
Add the appropriate useremail, message, date to the “Response Log” ( I have this working)
Take away this message in the list - because they clicked "Got the message (This part i cannot seem to get).
I put this expression on my slice - filter. It stopped showing any messages. Meaning - without this expression - the user can see the message and click on “Got the Message”. But when i add this expression - all the messages go away.
I think there might be logic error in the expression, Instead of ISNOTBLANK I think you want ISBLANK.
The idea is to show the message row (or show the button) when there are NO rows that indicate the message has been read.
By the way, if your intent is to hide the ROWS once the message has been acknowledged, you do not need to place this same logic in the condition for the button.
Ok. I want to do exactly what you said. I want that action button to go away after the user has clicked on it. I may be putting this logic in the wrong place. I put it on the action button:
i moved that logic on the slice. It now shows the action button no matter if i clicked it or not. So it shows them, but they never go away. I checked my data - and it is populating correctly in the table.
This is the logic i used:
ISBLANK(
FILTER(
“Response Log”,
AND(
(USEREMAIL() = [Useremail]),
([_THISROW].[Key] = [Key]),
(“yes” = [Read])
)
)
)