Can I hide the edit button?

How can I hide an edit button in my detail view?

Removing edit & add new buttons

The ‘add new’ button and the ‘edit’ button both appear by default if create/edit permissions are set for that table.

Removing the add new on list view

The only way to remove the ‘add new’ button, is to remove ‘create’ permissions for the table. If you remove the create permissions and impersonate a user, you should no longer see the ‘add new’ button.

Removing the edit button on detail view

Removing the ‘update’ permissions for the table, will remove the ‘edit’ button for the user. Just as with the ‘add new’ button.

For the edit button, you can also toggle off visibility if you have action buttons enabled in the app.

Click on ‘page buttons’ in the layout editor. Then toggle off the edit button.

Screen Shot 2021-02-24 at 4.50.29 PM

Note - action buttons are only available on the detail view, so there isn’t a way to do this for the ‘add new’ button on list view.

If you do not have action buttons enabled already, contact support@stacker.app to have them enabled.