Built-in Actions
Default CRUD actions — create, save, delete, and duplicate.
The admin panel provides these actions automatically for every collection. No configuration needed.
Available Actions
| Action | Location | Trigger | Description |
|---|---|---|---|
| Create | List view toolbar | "New" button | Opens a blank form to create a new record |
| Save | Form view toolbar | "Save" button | Saves the current form data (create or update) |
| Delete | Form view toolbar | "Delete" button | Deletes the current record (with confirmation) |
| Duplicate | Form view toolbar | "Duplicate" button | Clones the record and opens it as a new form |
| Bulk Delete | List view (multi-select) | Bulk toolbar | Deletes all selected records |
Access Control
Actions respect your collection's .access() rules. If a user lacks permission for an operation, the corresponding action button is hidden:
collection("posts")
.fields(({ f }) => ({
/* ... */
}))
.access({
create: ({ session }) => session?.user?.role === "admin",
update: ({ session }) => session?.user?.role === "admin",
delete: ({ session }) => session?.user?.role === "admin",
read: true,
});| Access Rule | Controls |
|---|---|
create | "New" button visibility |
update | "Save" button visibility |
delete | "Delete" and "Bulk Delete" visibility |
read | Whether records are shown at all |
Soft Delete Behavior
When a collection has softDelete: true in its options:
- Delete sets
deletedAtinstead of removing the row - Restore action appears on soft-deleted records
- Soft-deleted records are hidden from default queries but accessible via filters
.options({ softDelete: true })Workflow Stage Actions
When a collection uses versioning with a workflow, additional stage transition actions appear:
.options({
versioning: {
enabled: true,
workflow: {
stages: ["draft", "review", "published"],
initialStage: "draft",
},
},
})The form toolbar shows transition buttons like "Move to Review" or "Publish" based on the current stage and allowed transitions.
For stage configuration, transition access rules, hooks, stage reads, and scheduled transitions, see Versioning & Workflow.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl+S / Cmd+S | Save current record |
Delete | Delete (when focused on record) |
Related Pages
- Custom Actions — Define your own actions
- Versioning & Workflow — Configure draft and publishing stages
- Access Control — Permission rules
- Bulk Actions — Multi-select operations