> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Button row

> Button row

This element adds a row of clickable buttons to your screen.

## Configuration

| Setting           | Description                                                              |
| :---------------- | :----------------------------------------------------------------------- |
| buttons.n.name    | Adds a name to the nth button                                            |
| buttons.n.label   | Adds a value to the nth button                                           |
| buttons.n.warning | Adds a warning message<br />Shown in a pop-up when the button is pressed |
| buttons.n.iconurl | Custom icon to use                                                       |
| buttons.n.style   | *See list of styles*                                                     |
| align             | Justifies the row<br />left, center, or right (default)                  |

### Styles

* StyleNormal
* StyleSmall
* StyleIconOnly
* StyleBlue
* StyleLargeBlue
* StyleGreen
* StyleLargeGreen
* StyleRed

## Example

```crmscript theme={null}
buttons.0.name = ok
buttons.0.label = Ok
buttons.1.warning = Are you sure?
buttons.1.name = delete
buttons.1.label = Delete
buttons.2.name = cancel
buttons.2.label = Cancel
buttons.length = 3
```

## Functions

### setFieldValue(String action, Map values)

| Action    | Map keys                                                 | Description              |
| :-------- | :------------------------------------------------------- | :----------------------- |
| addButton | name<br />label<br />warning<br />iconUrl<br />className | Adds a button to the row |

<Note>
  The name of the buttons **must be mapped to scripts** that might be run for the current screen.
</Note>


## Related topics

- [saleguidestage](/en/api/mdo-providers/reference/saleguidestage.md)
- [Creating a trigger :: Script](/en/automation/trigger/create-trigger-script.md)
- [Void](/en/automation/crmscript/reference/CRMScript.Global.Void.md)
- [The layout elements on the Main screen](/en/learn/getting-started/main-screen/index.md)
- [Sales guides](/en/sale/learn/sales-guides.md)
- [Add a button or link](/en/customization/screen-designer/admin/add-button.md)
- [Add follow-up](/en/diary/learn/create-follow-up.md)
