I am modifying a hide/when formula that has this code …
@IsNewDoc | @Trim(RegisteredAttendees) = “” | @Date(@Now([ServerTime] : [LocalTimeOnError])) > ClassDate
It works well, but I want to add the following condition …
There is a field I want to check to see if the user is listed and I need to check to see if the user is in the admin role. Something like …
@IsNotMember(@Name([CN];@UserName);RegisteredAttendees) | @IsNotMember(“[DBAdmin]”;@UserRoles)
Because of the way @UserRoles works, I can’t include it in the first list, (at least not that I know). I had the code to be …
@IsNewDoc | @Trim(RegisteredAttendees) = “” | @Date(@Now([ServerTime] : [LocalTimeOnError])) > ClassDate | (@IsNotMember(@Name([CN];@UserName);RegisteredAttendees) | @IsNotMember(“[DBAdmin]”;@UserRoles))
but this doesn’t work. Hide/whens can be tricky, I have this issue before, but I can’t remember the fix.
any ideas???