Hi Tom,
According to the documentation of BizForm events you can do it. The following code should help:
[assembly: RegisterModule(typeof(CustomModule))]
public class CustomModule : Module
{
public CustomModule()
: base("CustomModule")
{
}
protected override void OnInit()
{
base.OnInit();
BizFormItemEvents.Insert.Before += InsertOnBefore;
}
private void InsertOnBefore(object sender, BizFormItemEventArgs e)
{
var formItem = e.Item;
var text = ValidationHelper.GetString(formItem["submittedFieldName"], String.Empty);
formItem["calculatedField"] = "result of calculation";
}
}