Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Bizform stopped working View modes: 
User avatar
Member
Member
brien-anca - 10/11/2011 10:57:43 PM
   
Bizform stopped working
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);
}
}

User avatar
Member
Member
brien-anca - 10/13/2011 2:45:57 PM
   
RE:Bizform stopped working
Fixed now (thanks Ivana).

FYI: It was caused by a corrupted schema (not sure how this happed). The solution was to tick the "allow empty value" fields in the (system generated) FormInserted and FormUpdated fields.