Discussions
Popup on sales order save?
After a user clicks "save" on a sales order, I would like to have a window/dialog pop up under certain conditions.
The user is prompted for some more information (e.g., a shipping cost), and the sales order is saved.
I would prefer to have something more functional than a javascript prompt() box.
Any "best practices" here for displaying a popup just prior to committing the order save?
(I have used the jquery library simplemodal before, which simulates a "modal dialog box". However, in order to use this, I would need to find a way to force the sales order form to save via client-side javascript -- clicking on the "save" button would display the modal dialog, and when the modal dialog is saved, I would need to force the sales order form to save. I'm not sure if there's a way to script the saving of the sales order.)