The AL developer preview is still evolving with frequent updates. Follow us on the Dynamics NAV Team Blog for the announcements.

Style Property

Sets a value that determines how text in a field on a page is formatted. For fields that are included in a CueGroup, this property sets the value of the color indicator on the cue.

Applies To

  • Page field controls that contain text.

  • Fields in a CueGroup control.

Property Value

The following table lists the values and their formatting for text and Cues.

Value Text Formatting Cue color indicator
Standard Standard Standard
StandardAccent Blue Not applicable.
Strong Bold Not applicable.
StrongAccent Blue + Bold Not applicable.
Attention Red + Italic Red
AttentionAccent Blue + Italic Not applicable.
Favorable Bold + Green Green
Unfavorable Bold + Italic + Red Red
Ambiguous Yellow Yellow
Subordinate Grey Grey



This information in this topic mainly pertains to formatting the text on page fields.

The Style property works together with the StyleExpr Property value to determine whether the field is formatted. If the StyleExpr Property evaluates to true, then the value of the field is formatted as specified by the Style property.

By default, the Style property is not set.

This property is not supported if one of the following data types is used for the SourceExpr of the field:

  • Code

  • Boolean

  • Binary

  • BLOB

  • GUID

  • RecordID

    On pages, you use the Style property for group, part, field, and action controls. You can change the formatting of a control either statically by setting the property to true or false, or dynamically by using a Boolean variable or a Boolean field on the page. The Boolean field on the page can be either a true/false Boolean or a Boolean expression, such as “Credit Limit > Sales YTD”.

See Also