Home Search

DriveWorks Pro 22

Send Feedback


The (Metadata) property allows optional text to be entered or driven into the control.

This can be used to provide information belonging to or about a control.

This allows a list of CSS (cascading style sheet) classes which can be parsed and applied to the control using the Integration Theme in DriveWorks Live.

This could, for example, apply styling to a control or group of controls dynamically in a browser.

Property Type: Static

Default Value:

Hierarchical Reference: ControlName.Metadata

To Change the Default Value

The default value of the property can be changed by:

  • Enter the required value directly into the enabled property field.
    1. Click in the property for the control to be changed.
    2. Type the required value directly into the property field.

A rule can also be built for this property by changing the type to dynamic.

See How To: Change A Static Property To A Dynamic Property.

  • Activate the rule builder.
    1. Click in the property for the control to be changed.
    2. Click the build button at the end of the property field to launch the rule builder .
    3. Enter the rule in the rule editor and click OK to apply.


(Metadata) Property ValueResult
cardWill apply the value card to the Metadata property.
If(DWVariableOffer=TRUE, "cardA", "cardB")When the variable Offer is True will apply the value cardA to the Metadata property, otherwise cardB will be applied.

Exposing Metadata

Metadata is exposed in the generated HTML for controls as a data attribute on the top level element of a control.

This will always be present, even if no value is provided to the property. This will look like:

Generated HTML
// Value
<div... data-metadata="card">

// No value
<div... data-metadata>

Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.