Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kyle Goulding 30 posts 192 karma points
    Jan 02, 2019 @ 16:19
    Kyle Goulding
    0

    Umbraco Forms Custom Workflow to send email to different address based on a dropdown value

    I am looking for some instructions on how to create a custom workflow to send emails on submissions to different addresses based on the selected value of a dropdown field.

    I have seen a few threads pointing to the extending Umbraco Forms documentation https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Extending/Adding-a-Workflowtype

    Unfortunately I havent found this very user friendly to follow... is anyone able to break this down or share anything?

    Thanks

  • Amir Khan 1199 posts 2567 karma points
    Jan 03, 2019 @ 03:56
    Amir Khan
    0

    Second this one. I've had countless clients request this but have never found a good solution besides manually editing the form templates and using javascript to change the value of a hidden field.

  • David Morgan 3 posts 73 karma points
    Jan 03, 2019 @ 18:59
    David Morgan
    0

    Yes, this would be a great feature. It seems like it may be possible through Extending but the exact way you would approach this isn't clear.

  • Kyle Goulding 30 posts 192 karma points
    Jan 11, 2019 @ 09:03
    Kyle Goulding
    0

    I agree - It looks like there is a way and some instructions but for a newbie to extending umbraco its not very clear.

    Hopefully so one can help.

  • Heather 13 posts 125 karma points
    Jun 30, 2020 @ 01:11
    Heather
    0

    Has anyone had any luck doing this sort of thing? I guess a custom workflow is the way to go, but how to actually accomplish this is unclear. You would think this is a common ask.

  • Naty 10 posts 77 karma points
    Oct 29, 2020 @ 20:15
    Naty
    0

    Hi

    https://github.com/a2wd/UmbracoForms.ConditionalWorkflows

    This was the solution for me.

    hope this helps

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Feb 03, 2021 @ 22:51
    Alex Skrypnyk
    0

    You can use Umbraco Forms functionality, this should help:

    var sendEmailWorkflow = new Umbraco.Forms.Core.Providers.WorkflowTypes.SendEmail(_xmlService, _contentSection)
    {
        Email = email,
        SenderEmail = SenderEmail,
        Subject = Subject,
        Message = Message,
        Attachment = Attachment
    };
    sendEmailWorkflow.Execute(record, e);
    
  • 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.

Please Sign in or register to post replies