The Confirm box task displays a dialog to the user asking for confirmation before continuing with the workflow. Depending on the user’s response (e.g., Yes or No), the workflow follows the corresponding branch.
Bu task özellikle riskli, geri alınamaz ya da kritik işlemler için idealdir (örneğin: sayfa kapatma, kaydı silme, logout olma vb.).
Purpose
- Kullanıcıdan doğrudan onay almak.
- İşlemlerde yanlışlıkla yapılan aksiyonları önlemek.
- Kullanıcıya seçim hakkı sunmak.
- Kritik adımlarda güvenlik ve kontrol mekanizması sağlamak.
Anatomy
- Step name
- Task’ın adı (flow içinde görünecek).
- Örn:
Confirm box
.
- Title
- Dialog kutusunun başlığı.
- Örn:
Close page
.
- Message
- Kullanıcıya gösterilecek asıl açıklama.
- Örn:
Are you sure do you want to close page ?
.
- Dialog type
- Dialog stilini belirler (örneğin:
Question
,Warning
,Info
,Error
). - Görsel olarak kullanıcıya bağlama uygun ikon ve vurgu sağlar.
- Dialog stilini belirler (örneğin:
- Response style
- Kullanıcının göreceği buton seti.
- Seçenekler:
- YesNo
- OkCancel
- Ok
- Branches
- Yes branch → Kullanıcı “Yes” (veya “Ok”) seçtiğinde çalışır.
- No branch → Kullanıcı “No” (veya “Cancel”) seçtiğinde çalışır.
How It Works
- Workflow Confirm box adımına geldiğinde ekranda modal dialog açılır.
- Kullanıcı bir seçim yapana kadar akış bekler.
- Kullanıcının cevabına göre ilgili branch (Yes / No) çalıştırılır.
- İşlem devam eder.
Example 1: Page Close Confirmation
- Title:
Close page
- Message:
Are you sure you want to close page ?
- Dialog type:
Question
- Response style:
YesNo
Yes branch → Close page task
No branch → Do nothing
Example 2: Record Deletion
- Title:
Delete record
- Message:
This action cannot be undone. Do you want to continue?
- Dialog type:
Warning
- Response style:
OkCancel
Ok branch → Execute query → deleteRecord
Cancel branch → Show notification → “Operation cancelled.”
Example 3: Single Action with Ok
- Title:
Session expired
- Message:
Your session has ended. Please login again.
- Dialog type:
Error
- Response style:
Ok
Ok branch → Show page → Login
Best Practices
- Use clear language → Keep messages short and easy to understand.
- Match dialog type to context → Use
Warning
orError
for risky operations, andInfo
for simple alerts. - Always provide a safe option → Give users a way to cancel or back out.
- Don’t overuse → Too many confirmation dialogs can harm user experience.
FAQ
Q: What happens if the user closes the confirm box (X button)?
- By default, the No/Cancel branch is executed.
Q: Can I use dynamic values inside the Message field?
- Yes. Example:
Are you sure you want to delete {{ Table1.selectedRow.name }} ?
Q: Does it work the same on mobile devices?
- Yes, the confirm box is fully responsive and will display correctly on mobile.
👉 In summary: The Confirm box task in Zeroplat is the standard way to request explicit user confirmation for critical actions. Depending on the user’s response, the workflow continues down the corresponding branch, ensuring both safety and flexibility in your applications.