RP.isRelatedList() not working in UI Action condition when more than one condition is present (List Action)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2017 11:11 AM
Hi all! I need some help getting RP.isRelatedList() to work in the condition field of a UI Action. This is specifically for a List Choice that we need to make sure does NOT appear on related lists.
For example: having just !RP.isRelatedList() works, the action does not appear on related lists.
But having something like: (!RP.isRelatedList())&&(gs.getUser().isMemberOf(current.assignment_group)) makes it reappear on lists. The entire condition does not break, the "memberOf" check continues to work. It's just the related list check breaks.
Oddly enough when we have it as a banner button it seems to work, but not as a list choice.
Any tips?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2018 09:23 AM
Try using !ListProperties.isRelatedList()
You may also need to add "&& !ListProperties.isRefList()" to that in order to prevent it from showing up in defined related lists.