How to visible one UI action button only if logged in user is member of field "watch list"

VIKAS MISHRA
Tera Contributor

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

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Add this to the ui action condition

 

current.WATCH_LISTFIELD_NAME.toString().indexOf(gs.getUserID()) > -1

 

-Anurag