DisplayForm

Specifies whether the block wraps itself in a form element.

Property values
  • true (default). Specifies that the block wraps itself.
  • false. Specifies that the block does not wrap itself and data is not saved in the form.
Examples

block = CRM.GetBlock("companyboxlong");
block.DisplayForm = true;
CRM.AddContent(block.execute());
Response.Write(CRM.GetPage());

Wraps the companyboxlong block in a form element, which means it follows the normal save/change steps (such as performing validation tasks).