I am implementing a simple workflow application in which user fills in a form, then he will have an option of either saving it and coming back later to submit, or save and submit by clicking onto an action button.I notice if he saves first and then comes back later, the @mailsend function gets executed and an email is sent out (which is exactly what I want). If he tries to save and submit at the same time, Lotus Notes only saves it but @mailsend does not get executed.
I figure the order of execution must have gone wrong, but I have trouble fixing it. Please help.