[Workflow("Send Email",FormState.Submitted)]
public class Email: WorkflowBase
{
public override WorkflowType Type
{
get
{
return new Umbraco.Forms.Core.Providers.WorkflowTypes.SendEmail
{
Email = "[email protected]",
Subject = "the form Contact Form was submitted",
Message = "the form Contact Form was submitted, " +
"this is the list of values it contained, " +
"you can turn this email off under workflows in Umbraco Contour"
};
}
}
}
Then on the form class override Workflows property
public override List<WorkflowBase> Workflows
{
get
{
return new List<WorkflowBase> {
new Email()
};
}
}
Contour CodeFirst Workflow
Hi Tim
Is it possible to apply a workflow to a form CodeFirst?
Martin
Comment author was deleted
Yup it is, will digg up some examples
Comment author was deleted
You can create a workflow like this
Then on the form class override Workflows property
is working on a reply...