I have a view form with a custom action button that initiates a workflow which waits and sends emails out at some defined time. This workflow will only terminate until the emails have been sent.
The problem is that when this workflow were to be executed again (which the user shouldn't) before the first instance has been terminated, the system returns an error stating that a previous workflow of this type is still active. How do I implement a checking to prevent this from happening? (Either prompts the user or by disabling the custom action button when there is already an on-going workflow with this entry)
Should I be looking into JQuery, custom aspx or something else? I would really appreciate it if someone can point me to the right direction!