Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 403 posts 1521 karma points
    Jan 26, 2021 @ 15:29
    Paul de Quant
    0

    Using AngularJS to capture page submit events

    Hello,

    Is there a way in the Umbraco 7 backoffice via Angular JS, where you can catch which of the main event buttons has been clicked. i.e. Save, Save and Publish, Send for Approval etc.

    I need to be able to see what the difference is:

    $scope.$on("formSubmitting", function (e, args) {
            if (args.action) {
                $scope.currentButtonAction = args.action;
            }
        });
    

    I'm using the above code, which sort of works but want to know if theres a better way of doing it. This coe will get me "save" or "publish", but not send to approver

    Thanks

  • 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