Workflows - Sending the form to a different email address dependent on input
Hi
I was wondering if it was possible to change the workflows of the submitted form to send to a diffrent email address dependant on input. There was nothing in the settings I could see but does Contour expose any events I could hook into prior to sending the email where I can modify the 'to' address dependant on form input
You have a couple options. First, Contour has some special syntax you can use in your workflow settings. One that might work for you is to grab a value from the current page for the To address, you can do so by entering [#propertyAlias] in the workflow settings. You can also grab form fields using {fieldcaption} if for example you wanted to send to the person filling out the form. More info on these in the Developer Docs.
If you need more flexibility you can always create a custom workflow type. This is very simple and then you have full control over where you obtain the "to" address from. You can look at the source for the Send Mail Extended Workflow Type in Contour Contrib for a starting point, or check out the Contour Shared Source.
Workflows - Sending the form to a different email address dependent on input
Hi
I was wondering if it was possible to change the workflows of the submitted form to send to a diffrent email address dependant on input. There was nothing in the settings I could see but does Contour expose any events I could hook into prior to sending the email where I can modify the 'to' address dependant on form input
Thanks,
Carl
Hi Carl,
You have a couple options. First, Contour has some special syntax you can use in your workflow settings. One that might work for you is to grab a value from the current page for the To address, you can do so by entering [#propertyAlias] in the workflow settings. You can also grab form fields using {fieldcaption} if for example you wanted to send to the person filling out the form. More info on these in the Developer Docs.
If you need more flexibility you can always create a custom workflow type. This is very simple and then you have full control over where you obtain the "to" address from. You can look at the source for the Send Mail Extended Workflow Type in Contour Contrib for a starting point, or check out the Contour Shared Source.
-Tom
Thanks Tom - Second time in a week you've helped on here :)
Hello Carl,
Did you manage to make anything out of this?
I am looking into making the same.
//Kalle
is working on a reply...