Copied to clipboard

Flag this post as spam?

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


  • Ben Palmer 157 posts 760 karma points c-trib
    4 days ago
    Ben Palmer
    0

    Hi,

    I'm attempting to setup a site using Umbraco Forms and am in need of posting off the data to a CRM. Usually, I would achieve this using "Post to URL" workflow but in this project, we need to know whether the record has been successfully submitted or not. If the submission fails, we redirect to an error page, otherwise, if it's successful, we redirect to a thank you page.

    As far as I know, this can't be achieved with Workflows because they're executed separately.

    The only solution I have right now is to hijack with JavaScript or a custom controller but neither feels like the right solution.

    Is there anyway to subscribe to Umbraco Form events or otherwise perform an action on submission, and make actions based on it?

    Thanks,

    Ben

  • Alex Skrypnyk 5438 posts 20361 karma points MVP 3x admin c-trib
    4 days ago
    Alex Skrypnyk
    0

    Hi Ben

    What do you mean by successfully submitted? Do you need to do some validation? I believe that validation can be done before workflows.

    Thanks,

    Alex

  • Ben Palmer 157 posts 760 karma points c-trib
    3 days ago
    Ben Palmer
    0

    Thanks Alex,

    When I say successfully submitted I mean that the form data reaches the CRM, so not validation.

    The process would be the user submits the form, the data is sent to the CRM and if the CRM returns a success, we redirect to a thank you page. Else, redirect to an error page.

    Thanks,

    Ben

  • Graham Davis 68 posts 275 karma points
    2 days ago
    Graham Davis
    0

    Your first instinct was correct. Custom coding this in JavaScript would be the proper way to handle it.

Please Sign in or register to post replies

Write your reply to:

Draft