
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 03:05 AM
hi experts,
in a form, I override an UI Action to hide the delete button in a form, it works, but switching other user it still see the delete button , I don't know why. in ui actions I just changed the condition!=true to make the canDelete() inactive. Anyone can give me a suggestion?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 03:20 AM
If the delete button is hidden how will the users have the delete functionality?
If you just want to remove delete button for everyone, replace the existing condition with
false

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 03:10 AM
Please check in ACL's which roles has delete functionality on the table. If you donot want to grant delete permissions then update the ACL as needed.
I would not change any condition on UI action. Leave the condition as
current.isValidRecord() && current.canDelete()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 03:17 AM
hi,
I just want to hide the delete button for all users , but I still want to keep the delete functionality on the table. In this condition, I still need to update ACL?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 03:20 AM
If the delete button is hidden how will the users have the delete functionality?
If you just want to remove delete button for everyone, replace the existing condition with
false

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2019 03:34 AM
you mean in UI Action,
Condition: replace "current.isValidRecord() && current.canDelete() !=true " with "false"