I have a Bizform for subscriptions and it's been working fine but recently refuses to save the form; displaying "This field is required" above the top field in the form. I have stipped out all but one field (email address) trying to debug this and it still occurs. I exported, deleted, imported. Still not working. The message does not appear attatched to a real field as validation errors are still working and appear below the field.
The only thing I can think of that I changed was that I also have a programmatic input for records and perhaps this is somehow interferring with ID key. Progromatic input still works, but manual form entry fails. Progromatic input uses the following code:
// Read BizForm definition
BizFormInfo bfi = BizFormInfoProvider.GetBizFormInfo(bizFormName, siteName);
if (bfi != null)
{
// Read data type definition
DataClassInfo dci = DataClassInfoProvider.GetDataClass(bfi.FormClassID);
if (dci != null)
{
// Get all bizform data
GeneralConnection genConn = ConnectionHelper.GetConnection();
DataClass formRecord = new DataClass(dci.ClassName, genConn);
formRecord.SetValue("Email", email);
formRecord.SetValue("FirstName", fname);
formRecord.SetValue("LastName", lname);
formRecord.SetValue("Country", country + ((state != "") ? (";" + state) : ""));
formRecord.SetValue("Phone", phone);
formRecord.SetValue("Company", company);
formRecord.SetValue("Language", lang);
formRecord.SetValue("ReferrerID", referrerID);
formRecord.SetValue("LeadSourceID", leadSourceId);
formRecord.SetValue("Subscribe", subscribe);
formRecord.SetValue("Syncd", "no");
formRecord.SetValue("Captcha", "auto");
formRecord.SetValue("FormInserted", DateTime.Now);
formRecord.SetValue("FormUpdated", DateTime.Now);
formRecord.Insert();
bfi.FormItems++;
BizFormInfoProvider.SetBizFormInfo(bfi);
}
}