Are you speaking of something similar to this i found in the DS User guide? That script below can trigger a process flow for an email notice? function FORM_OnAfterTransaction(data)
{
// was transaction successful?
if (formState.agsError) return;
sMsg = lawForm.getMessage();
if (sMsg=="Add Complete - Continue")
var s =portalWnd.AGSPath+"?_PDL=LOGAN”+
“&_TKN=WFWK.1&_EVT=ADD&_RTN=DATA&_LFN=ALL&_TDS=IGNORE”+
“&FC=Add&SERVICE=ServiceName&WORK-TITLE=ServiceTitle”+
“&_DELIM=%09&_OUT=TEXT&_EOT=TRUE";
portalWnd.httpRequest(s);
}