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.
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!
Tim,
Total stab in the dark but Is that not the form opened event?
Regards
Ismail
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)?
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.
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
That would be awesome! Thanks Tim!
:)
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 any update if it works out for the package that you are creating?
is working on a reply...
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.