Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there,
Is there any way of attaching onto the form saving event of an umbraco form? I'm trying:
public class FormsSavingContentComposer : ComponentComposer<FormSavingEventHandler> { } public class FormSavingEventHandler : IComponent { private readonly IFormService _formservice; public FormSavingEventHandler(IFormService formservice) { _formservice = formservice; } // initialize: runs once when Umbraco starts public void Initialize() { _formservice.Saving += FormServiceOnSaving; _formservice.Creating += FormServiceOnSaving; } private void FormServiceOnSaving(object sender, FormEventArgs e) {
But this is not being fired, so I'm at a bit of a loss as to how I can achieve what I need to.
What I need to do is to check that a form contains some fields, and their default values match some pre-set parameters.
Thanks!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Attaching onto Form Save event of a form
Hi there,
Is there any way of attaching onto the form saving event of an umbraco form? I'm trying:
But this is not being fired, so I'm at a bit of a loss as to how I can achieve what I need to.
What I need to do is to check that a form contains some fields, and their default values match some pre-set parameters.
Thanks!
is working on a reply...