notification
This action displays a pop-up message at the edge of the screen and automatically disappears after 5 seconds.
For long messages, you can also use dialog.
It can be used in response to a form submission to display feedback (e.g., success messages).
Overview
action("notification")-
Action to be executed.
payload(MessagePayload)-
Defines the appearance and content of the message.
Example
notification.json
{
"$schema": "https://forms.virtimo.net/5.0.x/schema.json",
"metaData": {
"id": "0",
"version": 0
},
"configuration": {
},
"components": [
{
"type": "container",
"languageButton": true,
"components": [
{
"type": "button",
"label": "success",
"onClick": {
"action": "notification",
"payload": {
"message": "Success message"
}
}
},
{
"type": "button",
"label": "error",
"onClick": {
"action": "notification",
"payload": {
"type": "error",
"message": "Error message"
}
}
},
{
"type": "button",
"label": "info",
"onClick": {
"action": "notification",
"payload": {
"type": "info",
"message": "Information message"
}
}
},
{
"type": "button",
"label": "custom",
"onClick": {
"action": "notification",
"payload": {
"icon": "fas fa-headphones",
"color": "#b32ab5",
"title": {
"MULTI_LANGUAGE": {
"de": "Überschrift",
"en": "Headline"
}
},
"message": {
"MULTI_LANGUAGE": {
"de": "Inhalt",
"en": "Content"
}
}
}
}
}
]
}
]
}
Embedded preview
Keywords: