[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
Yup it is, will digg up some examples
You can create a workflow like this
Then on the form class override Workflows property
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.