Copied to clipboard

Flag this post as spam?

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


  • Johan 9 posts 22 karma points
    Oct 03, 2016 @ 18:04
    Johan
    0

    Custom workflow setting to select Members

    Is there an example for an umbraco workflow setting where there is a Custom api call to get data?

    I like to select members in the backend of a workflow to receive an email.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 07, 2016 @ 13:16
    Alex Skrypnyk
    0

    Hi Johan,

    Did you look at documentation?

    https://our.umbraco.org/Documentation/Products/UmbracoForms/Developer/

    Thanks,

    Alex

  • Johan 9 posts 22 karma points
    Oct 09, 2016 @ 18:51
    Johan
    0

    Hi Alex,

    Yes, but can't find an example of extending workflow with your own picker.

    Extending the form on frontend is no problem, but I want an custom workflow where to select data from my own providers. (api's to external systems). Can somebody help me how i can create an angular workflow setting (member picker for example).

    Thanks,

    Johan

  • Comment author was deleted

    Oct 09, 2016 @ 20:28

    You can take a look at old build in ones they are stored in the dir

    \App_Plugins\UmbracoForms\Backoffice\Common\SettingTypes\

    It is very similar to creating a prop editor the Umbraco backoffice, so you need to register your js (controller and possible other files) in a package.manifest and then the main difference is is that you don't need to work with or manipulate model.value but setting.value

    A third party example can be found here https://github.com/TimGeyssens/UIOMatic-Loves-Forms/tree/master/src/UIOMaticLovesForms/App_Plugins/UIOMaticLovesForms

    Then to use it you just need to set the view property of the setting attribute to the location of the new view like

    Like in this example https://github.com/TimGeyssens/UIOMatic-Loves-Forms/blob/master/src/UIOMaticLovesForms/Providers/UIOMaticDataSource.cs#L27

  • Comment author was deleted

    Oct 09, 2016 @ 20:30

    ANd if you want a member picker I think you can start from the UI-O-Matic member picker

    View: https://github.com/TimGeyssens/UIOMatic/blob/master/src/UIOMatic/AppPlugins/UIOMatic/backoffice/views/pickers.member.html Controller: https://github.com/TimGeyssens/UIOMatic/blob/master/src/UIOMatic/AppPlugins/UIOMatic/backoffice/views/pickers.member.controller.js

    Again main difference that you'll need to adjust is that you are working with setting.value not model.value (or property.Value in UI-O-Matics case)

  • 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