Skip to main content
type
string
Required. Action type: ‘external’, ‘internal’, ‘inside’, ‘event’, ‘script’, or ‘upload’.
value
string
Required. Target URL, event name, or script based on type.
text
ReactNode | LocalizedText | Blocks
Required. Button/link text or content.
payload
any
Optional. Data to send with event.
popup
boolean
Optional. If true, opens links in a new window.
accept
string
Optional. For upload type, specifies accepted file types.
confirm
Object
Optional. Confirmation dialog settings.
disabled
boolean
Optional. If true, disables the action.
- slug: Action
  text:
    en: Submit Form
    fr: Soumettre le Formulaire
  type: event
  value: submitFormEvent
  payload:
    formId: contactForm
  disabled: "{{!formValid}}"
  confirm:
    label: Are you sure you want to submit?
    yesLabel: Submit
    noLabel: Cancel
  onInit: myInitBlockAction
  updateOn: myUpdateBlockAction
  css: |-
    :block {
      display: inline-flex;
      padding: 8px 16px;
      background-color: #4CAF50;
      color: white;
      border-radius: 4px;
      cursor: pointer;
    }
    :block[disabled] {
      opacity: 0.5;
      cursor: not-allowed;
    }