Let’s say you have a table called “Offers”, with one row for each new offer
If you include a User Specific boolean column in that table, you can use that to record the fact that each individual user has seen the offer (and perhaps doesn’t want to see it again)
Then you can include a component on your home screen that announces the offer.
That component could have a visibility condition that causes it to only be shown when the user specific column associated with an offer is not true
Perhaps tapping on that component would lead to a View Details screen, revealing more details about the offer
On that screen you could include a Button labeled “Don’t show me this again”, and tapping that button would set the User Specific column to true, and hide the announcement on the home screen
Alternatively, if you wanted the offer to persist for the whole week, you could instead use an “Expiry Date” column, and set the visibility condition to something like “now is on or before Expiry Date”
Exactly! We do this with an inline list component that includes “offers” (3:1 scaled images in our case) that when clicked on sets a user specific column to “viewed” AND also an expiry date via expiry date column.
When displaying the inline list of offers, we set up a filter to only show list items that people have yet to click on OR have yet to expire.
Just looked at this again and I think I understand now. If you have a List Layout selected, then all you can have on that screen is a single list. If you want additional components, then you need to switch to a Details Layout.
Hey Darren! This is great - I’m trying to do this in my app too but I’m stuck on how to set the column in the user specific column in order to “dismiss” the notification. I’m confused on how to do that… can you please help??
When I create the new notification (in the Message column), I then need to change the status of the boolean column to true so that it triggers the visibility of the actual tab in the app, seen below:
Clicking on that opens the message notification (in an inline list) which can be clicked on, then the actual message is viewed. That all works great - the issue I’m having (and hopefully this isn’t an XY problem, lol) is that when the end user clicks the button to “Mark as read,” it either doesn’t change the user specific boolean or it changes ALL of them. This is what my custom action looks like:
I guess I’m confused how to setup the Boolean column up so that it’s true for ALL users when it’s a user specific column. That’s why there are two, because if I can tie the non user specific one to the user specific one, I can trigger it to true on check then the visibility of the tab can be based on the user specific one… if that makes sense
UPDATE: I changed the function of the set column action to clear value in the user specific column and it seems to work now but I still need to be able to show true for all users at one time
You shouldn’t need the extra boolean column - just the single user specific boolean will do.
All you need to do is reverse your logic. What I mean is, when you create a new notification, that user specific column will be empty (not true) for all users. So you can take advantage of that - show the notification when that column is not true (NB. It’s preferable to use not true, as that covers the case of false, and the case of empty).
Then as each user marks the notification as read, you set that column to true.