DefaultValue

Specifies the default string value to use for the field when a new entity record is created.

Only use this property if you set the DefaultType property to 1.

Values

String. Any string value.

Examples

R = CRM.CreateRecord('company');
EG = CRM.GetBlock('companyboxlong');
E = EG.GetEntry('comp_name');
E.DefaultType = 1;
E.DefaultValue = 'My company name';
CRM.AddContent(EG.Execute(R));
Response.Write(CRM.GetPage());

Sets the default value of the comp_name field to My company name for each new company record being created.