Skip to main content

Dialog

The dialog screen can be used to display a small result message with the option to add one or two buttons for customer interaction. An approval (green mark) or a declined (red cross) icon can be shown within the dialog.

Screen Type Id : dialog

Properties

KeyTypeDescription
titleutf-8 stringThe primary title field on the screen. The field wraps when text overflows the width.
messageutf-8 stringSmall message at the top of the attention panel. If icon is not used, then the message field is capable of utilizing the space below itself.
iconenumThe icon to be displayed. This can be either:
approved
declined
buttons.(name)emptyAdding a property with prefix buttons will add a button. The first button in the map is the left button and the second the right.
buttons.(name).labelutf-8 stringThe lavel text on the button.
buttons.(name).transpbooleanSet to true to make the button transparent

Examples

curl -X 'POST' ${CPS_UI_URL} \
-H 'Authorization: CPS apikey="'${CPS_API_KEY}'"' \
-H 'Content-Type: application/json' \
-d '{
"id": "my-dialog-screen",
"type": "dialog",
"properties": {
"title": "Title",
"message": "Aut porro sint in excepturi facilis sed rem consequatur."
}
}'
Example