Limit views for few days

Hi,

I am trying to develop a app in which a user who is registered for a trail version should be able to access the view for 3 days after that the view should not the be seen by that user

Let me know how can I achieve this in appsheet

 

Thanks in advance 

0 1 73
1 REPLY 1

Each View has a Show If property into which you can include an expression.  You can do something like:

OR(
AND([Usage Type] = "Trial", TODAY() < [Trial Start Date] + 3),
[Usage Type] = "Registered"
)

This is just an example for discussion...how you need to implement it will depend on your data structure.

The basic idea is that you list the user as a Trial person along with the date they started the Trial.  The View is shown to either:

  • that trial user for 3 days past the Trial Start Date. 
  • OR, the view is shown to a user who is supposed to see it - i.e. a fully registered user.

You would place this expression (or something similar) in ALL views (and possible all actions to disable them) that the Trial user has access to.  When the Trial ends, all the views are hidden and the user can't do anything. 

There are some quirks you might run into.  Just come back to the community.

I hope this helps!

Top Labels in this Space