How to create an option of user consent to make record public/private?

How to create an option of user consent to make record public/private?

So that once the selects private no other user can see the record, and if the current user selects public, then everyone can see.

Solved Solved
0 20 255
3 ACCEPTED SOLUTIONS

I would do the following:

  1. Register the userโ€™s choice in an Enum or Yes/No column, with the display value as a question to the user. Letโ€™s name it โ€œconsentโ€.
  2. Create a column โ€œuserIDโ€ to capture the user who created the record and set its value to USEREMAIL().
  3. Create a slice of your table and set its row filter to the following formula:
    OR(
    [consent] = โ€œpublicโ€,
    [userID] = USEREMAIL()
    )

Perhaps more AppSheet-experienced fellows here can give us a better/simpler way.

Update:
There is also the Tableโ€™s Security filter, that you could fill with the same formula above, instead of creating the slice.

View solution in original post

You can show us some screenshots, of the app editor and the table source.

Alternatively, you can also share a link to your own App editor. HOWEVER, Iโ€™m not experienced enough in AppSheet to assess the security impact of this action, never used it and havenโ€™t read about it.

View solution in original post

If you mean upload various fotos at once, then I donโ€™t know a direct way to do it.

If you mean that you need a column to several photos that you can scroll and click, one way to do it is the following :

  1. Create a Photos table,
  2. Have one column in the Photos table as a reference to Sites table.
  3. Activate the option โ€œIs a part of?โ€, in this column.

In this way, youโ€™ll be able to have several photos in your Site view.

One way to do it, is to have a column of type: Show, with a custom message like: โ€œNo records availableโ€, and make it visible only (Show_if) when there are no records.

View solution in original post

20 REPLIES 20
Top Labels in this Space