Skip to main content
Version: 10

Button component

Level: beginner

Button is a component to execute a page action. Learn more: Button, Set up Button components (user documentation).

To customize the Button component in Creatio Mobile, follow the instructions: Button component in Creatio Mobile.

View an example of a configuration object that sets up the button functionality below.

Example of a configuration object that sets up the button functionality
{
"operation": "insert",
"name": "Button_ezt1u1f",
"values": {
"type": "crt.Button",
"caption": "#ResourceString(Button_ezt1u1f_caption)#",
"color": "default",
"disabled": false,
"size": "large",
"iconPosition": "only-text",
"visible": true,
"clicked": {
"request": "crt.SaveRecordRequest",
"params": {
"showSuccessMessage": true
}
},
"clickMode": "default",
"hotkeys": ["save"]
},
"parentName": "MainHeaderBottom",
"propertyName": "items",
"index": 2
}

Properties​

string type

Component type. "crt.Button" for the Button component.


string title

Button name. Required to bind the button to a handler, access the model attributes, etc.


boolean visible

Whether to display the button.


ButtonColor color

Button color. By default, "default."

Available values

Value

Description

default

primary

accent

warn

outline

plain-white

outline-white


ButtonDisplayType displayType

Button display type. By default, "contained."

Available values

Value

Description

contained

text


string ariaLabel

Button property mapped to the aria-label button attribute. Uses the caption property value by default.


string caption

Localizable schema caption displayed when holding the pointer over the button.


boolean disabled

Whether to lock the button. By default, "false."

Available values

Value

Description

false

The button is unlocked.

true

The button is locked.


boolean pressed

Whether to display the button clicked status. By default, "false."

Available values

Value

Description

false

The button is not clicked.

true

The button is clicked.


boolean disableRipple

Whether to disable the button animation on click. By default, "false" (animation enabled).


TextTransform textTransform

Display the style of the button caption.

Available values

Value

Description

capitalize

Capitalize the first letter of every word in the caption.

lowercase

Convert every letter of the caption to lowercase.

uppercase

Capitalize every letter of the caption.

none

Do not convert the caption.

inherit

Inherit the styles of the parent element.


ButtonClickMode clickMode

Set the button mode. By default, "default."

Available values

Value

Description

default

menu


SizeEnum size

Set the button size. By default, "large."

Available values

Value

Description

none

default

small

medium

large

extra-large


BaseComponentShape shape

Set the button shape. By default, "default."

Available values

Value

Description

default

rounded


boolean showNotification

Whether to broadcast an accessibility notification when a process starts. Applicable when "request": "crt.RunBusinessProcessRequest" and processRunType property are specified. Out of the box, the property value is set to "true."

Available values

Value

Description

true

Broadcasts a LiveAnnouncer message when the process starts. The message text is specified as a localizable string in the notificationText property. Out of the box, the localizable string value is "Process started."

false

Does not broadcast a notification when the process starts.


string notificationText

Specifies the text of the accessibility notification broadcast when the process starts. Applicable when "request": "crt.RunBusinessProcessRequest" and "showNotification": true. If "showNotification": false, the notificationText property is ignored. The message text must be defined as a localizable string. Out of the box, the value is "Process started."


object clicked

Action executed when a user clicks the button.

Parameters

Name

Type

Required

Description

request

string

Yes

The action to execute when a user clicks the button. Without a request, the click does nothing.

Available values

Value

Description

crt.CreateRecordRequest

Open new record

crt.UpdateRecordRequest

Open existing record

crt.OpenPageRequest

Open specific page

crt.OpenDuplicatesPageRequest

Open duplicates page

crt.OpenChangeLogRequest

Open change log

crt.SaveRecordRequest

Save data

crt.CancelRecordChangesRequest

Cancel changes

crt.LoadDataRequest

Refresh data

crt.ClosePageRequest

Close page

crt.RunBusinessProcessRequest

Run process

crt.DeleteRecordsRequest

Delete data

crt.MergeRecordsRequest

Merge data

crt.UploadFileRequest

Upload file

crt.AddTagsInRecordsRequest

Add tags

crt.RemoveTagsInRecordsRequest

Remove tags

crt.RemoveRecordsInStaticFoldersRequest

Remove records from static folder

crt.AddRecordsInStaticFoldersRequest

Add records to static folder

crt.AddCommunicationOptionsRequest

Add communication option

crt.ImportDataRequest

Data import

crt.ExportDataGridToExcelRequest

Export to Excel

crt.SetRecordRightsRequest

Set up access rights

crt.SetCalendarTimeScaleRequest

Set calendar time scale

crt.ShowRelationshipsRequest

Show record's relationships

crt.ToggleFollowFeedRequest

Follow/Unfollow Feed

crt.AddCalendarSyncAccountRequest

Add calendar synchronization account

crt.SetupCalendarSyncAccountRequest

Set up calendar synchronization account

crt.SendInvitesForActivityRequest

Send invite

crt.ContinueInOtherPageRequest

Continue in other page

crt.MoveSelectedItemsRequest

Move selected records

crt.PrintablesRequest

Print report

crt.CopilotActionRequest

Creatio.ai action

crt.CreateEmailRequest

Create an email

params

object

No

Additional parameters for the action specified in request.


array hotkeys

Assigns one or more keyboard shortcuts to the button. Creatio triggers the button click handler when the user presses the specified key combination. Custom and overridden click handlers keep working as usual.

Set the value using one of the following formats:

  • A modifier and key combination, such as ctrl+s or shift+esc. Use ctrl, shift, alt, or meta as the modifier. On macOS, you can also use command (equals meta) and option (equals alt). A combination matches the pressed key by event.key and might not work on all keyboard layouts.
  • An alias for a common action, such as save, copy, create, or delete. An alias matches the physical key by event.code regardless of the keyboard layout. Use aliases instead of key combinations whenever possible.
  • An individual key name without a modifier, such as tab or escape.

By default, the Save button that the base form page template provides has the "hotkeys": ["save"] property specified in the "Base page template" (BasePageTemplate code) schema of the "Client module" type. Creatio does not assign shortcuts to other buttons automatically, including custom buttons whose clicked.request property in the source code of the Freedom UI page is set to "crt.SaveRecordRequest." Ctrl+S is used on Windows and Linux. Cmd+S is used on macOS.

Creatio processes shortcut pressing as follows:

  • If a modal window is open over the record page, the shortcut saves only the modal window data.
  • If the record page has multiple data sources, the shortcut saves all of them.
  • If the record page has multiple buttons whose clicked.request property is set to "crt.SaveRecordRequest," the shortcut takes no action.
  • After saving, Creatio preserves the page scroll position.

To stop using this functionality, register and enable the DisableHotkeys additional feature.

The CrtHotkeyService service listens for keyboard shortcuts across the Freedom UI page and triggers the matching button click. This service manages hotkeys consistently for all crt.Button component types on the page.


disabled-button-background

Color of an inactive button.


button-border-radius

Button border radius.


SizeEnum iconSize

Set the icon button size. By default, "large."

Available values

Value

Description

none

default

small

medium

large

extra-large


IconPositionEnum iconPosition

Position of the icon relative to the button caption. By default, "only-text."

Available values

Value

Description

only-text

left-icon

right-icon

only-icon


string icon

Icon to display next to the button caption.

Available values

Value

Description

actions-button-icon

add-button-icon

back-button-icon

bars-button-icon

calculator-button-icon

clip-icon

close-button-icon

delete-button-icon

disk-warn-button-icon

document-button-icon

document-new-button-icon

upload-button-icon

download-button-icon

edit-button-icon

email-button-icon

export-button-icon

export-data-button-icon

flag-button-icon

gear-button-icon

horn-button-icon

import-button-icon

import-data-button-icon

lock-button-icon

contact-lock-icon

message-warn-button-icon

more-button-icon

open-button-icon

pencil-button-icon

print-button-icon

process-button-icon

reload-button-icon

save-button-icon

settings-button-icon

social-button-icon

call-button-icon

folder-button-icon

person-button-icon

timeline-button-icon

facebook-button-icon

linkedin-button-icon

webforms-button-icon

webhooks-integration-button-icon

copy-icon

checkmark-icon

relationship-button-icon

date

date-time

box-icon

car-icon

contact-leads-icon

database-icon

employee-icon

filter-column-icon

filter-funnel-icon

money-icon

newspaper-icon

organizational-structure-icon

tag-icon

trolley-icon

work-icon

replace-squares-icon

sum-icon

at-icon

show-structure-icon

show-merge-tag-icon

view-eye-icon

pen-icon

stop-button-icon

hide-merge-tag-icon

hide-structure-icon

chat-icon

consultation-icon

copilot-action-button-icon

copilot-rewrite-btn-icon

copilot-rewrite-friendly-icon

copilot-rewrite-formal-icon

copilot-rewrite-shorten-icon

copilot-rewrite-rephrase-icon

copilot-rewrite-extend-icon

reminding-icon

esn-notifications

approvals

noteworthy-events

system-notifications

business-process

feed-sidebar

send-test-email-icon

rocket-icon

send-email-icon

confirm-scheduling-icon

schedule-time-icon

translate-icon

codeblock-icon

checkbox-rocket-icon

checkbox-arrow-right-icon

folder-rocket-icon

folder-arrow-right-icon

warning-filled-icon

scale-camera-icon

dashboards-icon

list-icon

calculator-refresh-icon

folder-minus-icon

folder-plus-icon

cloud-arrow-down-icon

cloud-arrow-up-icon

resize-width-icon

standard-width-size-icon

large-width-size-icon

fullscreen-width-size-icon

document-contact-icon

merge-icon

filter-add-icon

access-icon

webcheck-icon

attachments-icon

link-web-icon

mail-icon

image-update

eraser-icon

info-icon

checkmark-lined-icon

exclamation-lined-icon

exclamation-filled-icon

excel-icon

folder-search-icon

warning-icon

question-icon

expand-icon

business-contact-icon

feeds-icon

home-panel-icon

leads-icon

map-with-pin-icon


Menu-item component (crt.MenuItem)​

Menu-item is a component that lets you add additional actions to a button menu item. Use the Menu-item component for any interaction that performs an action on the current page.


string type

Component type. "crt.MenuItem" for the Menu-item component.


string caption

Localizable caption of the button menu item.


boolean visible

Whether to display the menu item.


boolean disabled

Whether to lock the menu item. By default, "false."


CrtMenuItemViewElementConfig[] items

Index of button menu items. Displayed when you hold the pointer over the menu item that contains a submenu. The operation mechanism and properties of the button submenu and the button itself are identical.


string icon

Icon to display next to the menu item caption.

Available values

Value

Description

actions-button-icon

add-button-icon

back-button-icon

bars-button-icon

calculator-button-icon

clip-icon

close-button-icon

delete-button-icon

disk-warn-button-icon

document-button-icon

document-new-button-icon

upload-button-icon

download-button-icon

edit-button-icon

email-button-icon

export-button-icon

export-data-button-icon

flag-button-icon

gear-button-icon

horn-button-icon

import-button-icon

import-data-button-icon

lock-button-icon

contact-lock-icon

message-warn-button-icon

more-button-icon

open-button-icon

pencil-button-icon

print-button-icon

process-button-icon

reload-button-icon

save-button-icon

settings-button-icon

social-button-icon

call-button-icon

folder-button-icon

person-button-icon

timeline-button-icon

facebook-button-icon

linkedin-button-icon

webforms-button-icon

webhooks-integration-button-icon

copy-icon

checkmark-icon

relationship-button-icon

date

date-time

box-icon

car-icon

contact-leads-icon

database-icon

employee-icon

filter-column-icon

filter-funnel-icon

money-icon

newspaper-icon

organizational-structure-icon

tag-icon

trolley-icon

work-icon

replace-squares-icon

sum-icon

at-icon

show-structure-icon

show-merge-tag-icon

view-eye-icon

pen-icon

stop-button-icon

hide-merge-tag-icon

hide-structure-icon

chat-icon

consultation-icon

copilot-action-button-icon

copilot-rewrite-btn-icon

copilot-rewrite-friendly-icon

copilot-rewrite-formal-icon

copilot-rewrite-shorten-icon

copilot-rewrite-rephrase-icon

copilot-rewrite-extend-icon

reminding-icon

esn-notifications

approvals

noteworthy-events

system-notifications

business-process

feed-sidebar

send-test-email-icon

rocket-icon

send-email-icon

confirm-scheduling-icon

schedule-time-icon

translate-icon

codeblock-icon

checkbox-rocket-icon

checkbox-arrow-right-icon

folder-rocket-icon

folder-arrow-right-icon

warning-filled-icon

scale-camera-icon

dashboards-icon

list-icon

calculator-refresh-icon

folder-minus-icon

folder-plus-icon

cloud-arrow-down-icon

cloud-arrow-up-icon

resize-width-icon

standard-width-size-icon

large-width-size-icon

fullscreen-width-size-icon

document-contact-icon

merge-icon

filter-add-icon

access-icon

webcheck-icon

attachments-icon

link-web-icon

mail-icon

image-update

eraser-icon

info-icon

checkmark-lined-icon

exclamation-lined-icon

exclamation-filled-icon

excel-icon

folder-search-icon

warning-icon

question-icon

expand-icon

business-contact-icon

feeds-icon

home-panel-icon

leads-icon

map-with-pin-icon


string iconColor

Hex code of an icon color.


See also​

Overview of Freedom UI Designer and its elements (user documentation)

Set up Button components (user documentation)