How to override OOB UI Action?

Frank
Mega Expert

I need to hide the Save and Stay UI Action on the incident form unless the user has a specific role, but I don't want to modify the action directly because it's an OOB function. I've see examples where you can override global UI Actions by adding a UI Action to the specific table, but in this case, the action already is on the incident table. Anyone have any suggestions on how to accomplish this? Could it be done with security policies?

 

Thanks,

 

Frank

1 ACCEPTED SOLUTION

Frank
Mega Expert

I believe I have a solution. If the UI Action has current.canWrite() in the condition, then creating a security rule where the name is the name of the table and the field names is set to none, not * and then adding the appropriate role seems to work. Marking this as resolved.



Thanks everyone,



Frank


View solution in original post

5 REPLIES 5

Frank
Mega Expert

I believe I have a solution. If the UI Action has current.canWrite() in the condition, then creating a security rule where the name is the name of the table and the field names is set to none, not * and then adding the appropriate role seems to work. Marking this as resolved.



Thanks everyone,



Frank