Form.createControlFromXML

Method of Form

Syntax

Form.createControlFromXML( xml )

Parameters

Parameter Description
xml A string with XML definition of a form control.

Description

Creates a form control from its XML definition:

  • Created control can be dynamically appended to the form using Form.body.appendChild function.
  • If control's XML definition contains id property, dynamically appended control will be accessible through Form.getControlById et al. functions.

Examples

The following example uses createControlFromXML to dynamically create a box and place it on the form:

See Also

Form.body.appendChild

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.