Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Show If - This formula is not evaluated in the context of a row, so column values are not available

Screenshot 2024-06-14 2.51.42 PM.png

 

this is a reference view, i want to hide the view to some especific users
i tried or(usermail()=xxxx@xxxx.com,... ,...) then i tried this one, but the error still here

english is my second language so if there's something wrong with my grammar please let me know

0 7 930
7 REPLIES 7

you will need to add quotations "" around the email to make it work

Ex. - USEREMAIL() = "name@grupoccer.com.br" 

hi, thanks for the answer but the error is still here

Is it only a hand full of users that need to see the items? if so remove the piece IN(USEREMAIL(), lideres[E-mail],     

The USEREMAIL() is seperate from a table . It tells the system who is using the app currently. without needing to reference a table. 

https://support.google.com/appsheet/answer/10108210?sjid=16258748174228880400-NC

This method does not require user sign in.

Try the next:

SWITCH( USEREMAIL(),
"(PII Removed by Staff)@grupoccr.com.br", true(),
"(PII Removed by Staff)@grupoccr.com.br", true(),
"(PII Removed by Staff)@grupoccr.com.br", true(),
false() )

To use USEREMAIL() function, be sure to enable "Require user signin?" in security menu.

MiguelPilo_0-1718387931848.png

And to verify the changes introduce any email to check in "Preview app as"

MiguelPilo_1-1718388076373.png

 

 

 

 

Your requirement is so simple we can easily achieve it. 

you can try like this 

OR(
IN(Useremail(),table[column]),
IN(useremail(),list( all email id you mention. use "," one email id after. )
)

 

Read this :

https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/DYNAMIC-USER-CONTROLS-EDIT-NO-ACCESS-ETC/td-p/5...

same logic you use in your case. 

Thank you. 

Top Labels in this Space