Trap a salesforce permission error in order to display a friendlier message?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
When there is a delete button on a row in a table and the user doesn't have delete permission on the row, when the user clicks on the delete button a less than attractive error message is displayed. Is there is a way in Skuid to trap the error and display a more user friendly error message?
Photo of Andy Forbes

Andy Forbes

  • 322 Points 250 badge 2x thumb

Posted 4 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Have you considered using the method I put together in this post.
https://community.skuidify.com/skuid/topics/how-to-enable-disable-row-actions-edit-delete-button-based-on-user-access-level-on-particular-record

You can also create a "fake" delete button for those who don't have the proper user record access to the record in question. That button can have a popup action with a message within it saying what ever you'd like.