Hide-When - Action Button

I have an action that I need to hide depending on a role and a group.

name1:= CurrentAuthors_temp;

name2:= @UserName;

@If(!@Contains(name1; name2)) |

IsNotMember(“[Admin]”; @UserRoles)

It’s not being recognized. ??

Subject: Hide-When - Action Button

Try using this formule:

!(@Member(@UserName;CurrentAuthors_temp) | @Member(“[Admin]”; @UserRoles))

Subject: RE: Hide-When - Action Button

It doesn’t want to recognize names within a group.

Field name = CurrentAuthors_temp

within this field is a list which includes individual names and groups (i.e. #HDTDP)