How to visible one UI action button only if logged in user is member of field "watch list"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 05:12 AM
I have one form where one field "watch list" is mentioned in which we can add any user group email address, or user name , or any external email.
Now i want to visible one ui action button to only those logged in user on the same form if user is one of the user or group mentioned in watch list field.
Basically i am confused that how can i make that button visible for those user who are part of particular group becuase in watch list field i am added the group email address not group name and at the same time it should work for the users mentioned in the watch list field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 06:51 AM - edited 02-13-2023 06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2023 06:54 AM
Add this to the ui action condition
current.WATCH_LISTFIELD_NAME.toString().indexOf(gs.getUserID()) > -1