override an ui action to hide the delete button in a form, it works, but switching other user it still see the delete button

zhihong
Tera Contributor

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?

find_real_file.png

 

find_real_file.png

 

find_real_file.png

1 ACCEPTED SOLUTION

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

View solution in original post

4 REPLIES 4

dvp
Mega Sage
Mega Sage

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()

zhihong
Tera Contributor

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?

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

zhihong
Tera Contributor

you mean in UI Action,

Condition: replace "current.isValidRecord() && current.canDelete() !=true " with "false"