Copied to clipboard

Flag this post as spam?

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


  • Tim 1193 posts 2655 karma points c-trib
    Apr 01, 2011 @ 15:08
    Tim
    0

    Form New Event?

    Hi,

    Does anyone know if theres an event fired when a contour form is created? I have an idea for a package, but I'd need an event to hook into!

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Apr 01, 2011 @ 15:16
    Ismail Mayat
    0

    Tim,

    Total stab in the dark but Is that not the form opened event?

    Regards

    Ismail

  • Tim 1193 posts 2655 karma points c-trib
    Apr 01, 2011 @ 15:27
    Tim
    0

    Not sure, isn't that the event that's fired when a user opens a form on the front end (that's used in the workflow)?

  • Tim 1193 posts 2655 karma points c-trib
    Apr 01, 2011 @ 15:57
    Tim
    0

    Basically, what I'm after is a way to hook into the fact that a form has been created in the back office, so that I can do some stuff with assigning contour permissions to various users (so that it doesn't have to be done manually for sites with a lot of CMS users). I've got as far as working out how to assign permissions to users given a user id and a form id, but I haven't found a way of tieing it in to the form creation.

    @TimG, if there isn't an event raised at the moment, is there any chance of getting an event raised that enables me to get the form id with it's arguments? I can see a few uses for this, like the ability to send alerts when forms are created etc.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 01, 2011 @ 16:05
    Tim Geyssens
    0

    Currently there isn't an event for that but could add that in (will take a look at it for the next maintenance release, mid april)

    Cheers,
    Tim

  • Tim 1193 posts 2655 karma points c-trib
    Apr 01, 2011 @ 16:09
    Tim
    0

    That would be awesome! Thanks Tim!

    :)

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 12, 2011 @ 14:57
    Tim Geyssens
    0

    Hey Tim,

    I added 2 new events so you can hook into form create and update.

    FormStorage should have a FormCreated and FormUpdated

    You can give it a try when you download the 1.1.7 WIP version

    http://nightly.umbraco.org/Umbraco%20Contour/1.1.7WIP/

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Apr 14, 2011 @ 15:10
    Tim Geyssens
    0

    @Tim any update if it works out for the package that you are creating?

  • 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