AllowBlank
Specifies whether the field can be set to a blank value.
Only use this property if the EntryType property value of the target Entry block is set to 21.
Values
This property can take one of the following values:
- true(default). Enables blank field values.
- false. Disables blank field values. The user must enter a value for the field.
Example
r = CRM.FindRecord('Company','Comp_companyid=44');
EG = CRM.GetBlock('companyboxlong');
NewE = EG.GetBlock('comp_revenue');
NewE.AllowBlank = false;
CRM.AddContent(EG.Execute(r));
Response.Write(CRM.GetPage());
Disables blank values for the comp_revenue field.