> ## 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

> Button

The `button` element adds a clickable button to your screen. Used to submit forms and offer standard button functionality.

## Configuration

| Setting | Description                                  |
| :------ | :------------------------------------------- |
| label   | UI label                                     |
| title   | Text on the button                           |
| onClick | JavaScript called when the button is pressed |

## Functions

### getFieldValue(String field)

Returns a field.

### setFieldValue(String action, Map values)

| Action | Map keys | Description                  |
| :----- | :------- | :--------------------------- |
| script | onclick  | Sets the selected JavaScript |


## Related topics

- [Delete and restore items](/en/learn/basics/deleting-elements.md)
- [Add a button or link](/en/customization/screen-designer/admin/add-button.md)
- [Buttons on the top bar](/en/learn/getting-started/main-screen/buttons-in-menu-bar.md)
- [Add function to menu button](/en/ui/blogic/learn/extra-menus/actions.md)
- [NSQuoteVersionButtonState](/en/automation/crmscript/reference/CRMScript.NetServer.NSQuoteVersionButtonState.md)
- [Get Quote Version Workflow Button States](/en/api/reference/restful/agent/quote_agent/get-quote-version-workflow-button-states.md)
- [Enum QuoteVersionButtonAction](/en/automation/crmscript/reference/CRMScript.NetServer.QuoteVersionButtonAction.md)
