alertBox() Function Documentation¶
The alertBox()
function is used within Merciglobal Cloud ERP to display interactive alert dialogs. This feature helps capture user input or acknowledgment before proceeding with workflows.
Purpose¶
To create a customizable alert or prompt window for receiving confirmation or input from users.
Function Signature¶
alertBox(wintitle='Notes', title='Input', callbackOk)
Parameters¶
Parameter | Type | Description |
---|---|---|
wintitle |
string |
(Optional) The title of the alert box window. Default is 'Notes' . |
title |
string |
(Optional) Message or instruction shown in the box. Default is 'Input' . |
callbackOk |
function |
(Required) Callback function to be executed when user clicks 'OK'. |
Example Usage¶
alertBox('Confirmation', 'Are you sure you want to delete this record?', function() {
console.log('User confirmed action');
});
Use Cases¶
- Confirming deletion of records 🗑️
- Asking for user input or decision-making 📥
- Triggering custom workflows based on user consent ⚙️
Notes¶
- This function is part of Merciglobal's UI utilities library.
- It ensures consistent user interaction patterns across all modules.
- Make sure the
callbackOk
is properly defined to avoid JS runtime errors.
Best Practices¶
- Keep
wintitle
andtitle
concise and informative. - Use it sparingly to avoid disrupting user workflows.
- Combine with form validation for robust UX.
📞 Need Help?¶
If you encounter any issues while using alertBox()
or need a custom implementation:
- Contact the Merci Developer Support Team.
- Refer to the internal ERP Component Library Docs.
Stay tuned for more utilities and enhancements in Merciglobal Cloud ERP to enrich your enterprise experiences!