Copied to clipboard

Flag this post as spam?

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


  • Mark Bowser 273 posts 860 karma points c-trib
    Jun 12, 2014 @ 19:35
    Mark Bowser
    0

    Attach to Contour form Created Event

    Is it possible to attach to the contour form created/deleted events? If so, how is this accomplished?

    I'm trying to write a cache handler for a courier contour provider. I'm basing it off of the CourierContrib CacheHandler V6, and it looks like I need to attach to the contour form created event to get this to work.

  • Mark Bowser 273 posts 860 karma points c-trib
    Jun 27, 2014 @ 21:31
    Mark Bowser
    0

    Anyone have any clues?

  • Mark Bowser 273 posts 860 karma points c-trib
    Jul 22, 2014 @ 21:01
    Mark Bowser
    0

    ping ping ping

  • Hywel Rees 56 posts 224 karma points
    Nov 11, 2014 @ 18:53
    Hywel Rees
    0

    Hi,

    I am attempting a similar thing to you. The two events you are looking for live in:

    Umbraco.Forms.Data.Storage.FormStorage
    

    You will need to subscribe to the FormCreated and FormUpdated events.

    You should be able to inspect the properties of the FormEventArgs in the FormUpdated event, and determine if the form is deleted or not.

    I have a post here which may help you to see how I hook into FormCreated. I will update with my final solution once it works (hopefully tomorrow): http://stackoverflow.com/questions/25549979/umbraco-6-contour-forms-3-add-default-fields-on-creating-new-form

    Have fun!

Please Sign in or register to post replies

Write your reply to:

Draft