show/hide ui action based on assignment on a different table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2024 08:00 AM
Hi, I have a ui action on a form that should only display if the current user is assigned to a record on a different table.
I have a ui action calling a script include using a condition
This is what I have in the script include to only show the button on records that are assigned to me
having trouble displaying the ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 06:30 AM
Hi @polodre2
I hope assignment group field in x_1234_agreements_task table is reference to groups table..In that case modify your addQuery like below
grabTaskAssignee.addQuery('assignment_group.name','Agreements Security Reviewers'); // line 4 in script include
also pass current.getDisplayValue('assignment_group') from the UI Action instead of current.assignment_group which will pass only sysid of assignment group and in the last if condition you are checking name.
hope this helps