Required

Specifies whether the field is required or optional.

Values

This property can take one of the following values:

  • true. Specifies that the field is required and must be populated with a value.
  • false. Specifies that the field is optional.
Examples

Block = CRM.GetBlock('PersonBoxShort');
Title = Block.GetEntry('pers_title');
Title.Required = true;
CRM.AddContent(Block.Execute());
Response.Write(CRM.GetPage());

Sets the pers_title field as a required field.