- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 05:40 AM - edited 04-03-2024 06:31 AM
Hello community!
I'm trying to hide the "New"-button, which is on Global table, and no specified View. Should also be added, this is a button that is visible in Configurable Workspace (if this even matters?). I found the button under "List Actions", but the record seems to point to sys_declarative_action_assignment (Action Assignment). It's also a UXF Client Action... No idea really what this means.
I'm not trying to hide it from everyone though, else I'd just inactivate it.
I just want to hide it from 1 specific Company. This company also uses 1 specific view only.
I've tried via the Client Condition, to specify "view != XXXXXX", but that didn't seem to have any effect at all...
Record condition has no fields that I could specify either...
I've got no clue what to do with a Script Condition though, maybe this could be a solution? But I've never done any Script Conditions before, and I can't seem to find any good examples of what those even look like when googling...
There's also no roles or such that would separate the companies... So can't go with that either...
Any kind of help, is more than appreciated. Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 11:38 PM
We managed to solve it in the end with: javascript:gs.getUser().getCompanyID()!='sys_ID'; after a few attempts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 11:16 PM
If this is for specific user then you can use below condition
gs.getUserID() != 'User sys_id'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 11:38 PM
We managed to solve it in the end with: javascript:gs.getUser().getCompanyID()!='sys_ID'; after a few attempts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 04:47 AM
Thank you for posting the solution. It helped me!! 😊