Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I created a stackoverflow question, but am hoping to get an answer here:
http://stackoverflow.com/questions/21277926/umbraco-contour-get-email-from-workflow
I have a receipt page that the user is redirected to after form submisson. On this page I show a macro that summarise the form.
The gist of the macro is pretty mucg like this:http://our.umbraco.org/forum/umbraco-pro/contour/32623-Sort-and-iterate-through-form-fields-with-Razor
I would like to tell the user "you will soon receive an email" if a workflow exists, that sends an email to the submitter, on the page.
How is this feasable?I have searched a lot on the internets and can only see how I create my own workflow, not how I access workflows by code...
You'll need to make use of
Umbraco.Forms.Data.Storage.WorkflowStorage
Once you create an object of that instance you can call the method GetAllWorkFlows(Form form) or GetActiveWorkFlows(Form form, FormState state)
You'll of course need the form object
And you can get that with
Umbraco.Forms.Data.Storage.FormStorage
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.
Continue discussion
Umbraco contour get email from workflow
I created a stackoverflow question, but am hoping to get an answer here:
http://stackoverflow.com/questions/21277926/umbraco-contour-get-email-from-workflow
I have a receipt page that the user is redirected to after form submisson. On this page I show a macro that summarise the form.
The gist of the macro is pretty mucg like this:
http://our.umbraco.org/forum/umbraco-pro/contour/32623-Sort-and-iterate-through-form-fields-with-Razor
I would like to tell the user "you will soon receive an email" if a workflow exists, that sends an email to the submitter, on the page.
How is this feasable?
I have searched a lot on the internets and can only see how I create my own workflow, not how I access workflows by code...
You'll need to make use of
Umbraco.Forms.Data.Storage.WorkflowStorage
Once you create an object of that instance you can call the method GetAllWorkFlows(Form form) or GetActiveWorkFlows(Form form, FormState state)
You'll of course need the form object
And you can get that with
Umbraco.Forms.Data.Storage.FormStorage
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.