I figured out what I needed to do to make my BizForm work and the article Peter mentioned pointed me in the right direction.
I wanted to detail what I needed to put in place to make sure my code was working:
--> Make sure you register the function in the 'protected override' code... below is where I added the "viewBiz.OnBeforeSave"
Code`
{
// THIS IS FROM: protected override void OnLoad(EventArgs e) call code
//
// add in control functions here-- otherwise it will not work!
// controlling the 'OnBeforeSave' - to check for duplicates!
viewBiz.OnBeforeSave += viewBiz_OnBeforeSave;
viewBiz.OnAfterSave += viewBiz_OnAfterSave;
base.OnLoad(e);
}
Get table data with:
// Loads the form's data (already in Kentico Docs for API)
ObjectQuery<BizFormItem> data = BizFormItemProvider.GetItems(className);
Capturing data and getting form values I had the code below:
// Get Associate name from data-table to verify they had done an acknowledgement
string associateIDValue = item.GetStringValue("AssociateID", "") as string;
string registrationName = viewBiz.GetFieldValue("AssociatesName") as string;
IMPORTANT: You can capture form field values with:
string STRINGNAME = viewBiz.GetFieldValue("FORMFIELDNAME") as string;
Thanks for the information Peter- it helped me out!