If you're not much of a .NET dev then I'd look at doing this on the client side vs. writing C# code for it. There are at least 3 different ways I can think of on the C# side to do things.
- Custom global event handler
- Clone the biz form webpart and perform your actions in there after form submit.
- Create your own custom webpart and do all your events within there after form submit (very close to option #2).
Code could look something like this for a global event handler:
using CMS.Base;
using CMS.DataEngine;
using CMS.EventLog;
using CMS.OnlineForms;
using CMS.SettingsProvider;
using System;
[CustomClassLoaderModule]
/// <summary>
/// Summary description for CustomClassLoaderModule
/// </summary>
public partial class CMSModuleLoader
{
private class CustomClassLoaderModuleAttribute: CMSLoaderAttribute
{
public override void Init()
{
BizFormItemEvents.Insert.After += Form_Insert_After;
}
protected void Form_Insert_After(object sender, BizFormItemEventArgs e)
{
try
{
// do your processing here, check the form type and get values
if (e.Item.ClassName == "yourform.classname")
{
// do some work because it's the right form
string name = e.Item.GetStringValue("ColumnName", "");
}
}
catch (Exception ex)
{
EventLogProvider.LogException("SECUREFORMPROCESSING", "FORMINSERT", ex);
}
}
}
}