# Create a page button on detail layout

{% hint style="info" %}
You can control the **Edit and Delete** button on a detail layout page if users have [permissions](broken://pages/8PmwpIViYL1xDov2bF3L) to Edit or Delete records from **Page Buttons.**
{% endhint %}

### Create action buttons in detail layout <a href="#create-action-buttons-in-detail-layout-0-1" id="create-action-buttons-in-detail-layout-0-1"></a>

1. Go to your detail layout
2. Click <img src="/files/wdsZRdiRbfz1f8eZH138" alt="" data-size="line">**Edit Layout**
3. Click **Controls**
4. Create an action button or toggle on existing buttons
5. [Setup](/stacker-astra/ai-and-automations/action-buttons/edit-an-action-button.md) your butto

<figure><img src="/files/RjcRtnP0RRsPbevCpf3M" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stackerhq.com/stacker-astra/ai-and-automations/action-buttons/create-a-page-button-on-detail-layout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
