Field Attributes

Learn about the field attributes for CRM.pad.

The following field attributes are available:

ColSpan

Combines field values in view mode, see Combining Field Values.

Extended Options

You can use this argument to define specific options:

  • {"newLine" :true } inserts a line break after the field.
  • {"supportsDecimals":"false"} defines that the user cannot enter decimals in this field
  • {"catalogStyle":"popOver"} defines that catalog values are displayed in a pop-over.
  • {"ShowFieldNameForTrueValue" :false }: By default, Yes/No is displayed for boolean fields. You can define, that the field name is displayed instead, see Format.ShowFieldNameForTrueValue. If you specify {"ShowFieldNameForTrueValue" :false } the Format.ShowFieldNameForTrueValue and the Format.ShowFieldNameForTrueValue Web Configuration parameters are ignored.
  • {"phone":"tel"} defines that you can call the telephone number in the field (if exists) directly from your iPad.
    Note: This option is only available with hardware that supports Apple Continuity. For more information see https://www.apple.com/ios/whats-new/continuity/.

Field Color

Defines the color of the field value. You can also enter a hex value, e. g. #FF0000FF, or in the format "<red>;<green>;<blue>;<alpha>", each entry to be given as a value between 0,0 and 1,0.

Hyperlink (Details view only)

The field is displayed as a link, i.e. fields from the current info area are handled as a hyperlink. For linked fields the default action defined for the linked info area is executed (i.e. in most cases the target record is displayed).

Image (for Document fields' details only)

If the document field contains the key of a document that is available offline, the image is displayed if this check box is checked. The image is shown to the right of the tab group. Empty fields are not displayed.

Label Color (Details and MiniDetails only)

Defines the color of the field label. See Field Color for more information.

No Label

Hides the field label.

Note: The field label is hidden by default in lists. Enabling this option results in the field label being displayed (which can be useful, for example, if you only display and sort numbers).

No Multi Line

All line breaks and multiple spaces are removed.

Note: If you copy the text to the clipboard, the actual text (incl. line breaks and spaces) is copied.

Render Hooks

You can influence how a field's content is displayed with the Render Hook field attribute. For example:

  • {"FieldType":" <type >"}: Defines the number type. You only need to define this if the desired field type differs from the current field type.

    Possible values: F (float) and L (long integer)

  • {"PercentField" :true }: Formats the field as percentage field (i.e. the % character is appended) and also calculates its content as percentage value.

    Example: 0,10 is displayed as 10 %

  • {"DecimalDigits": <number >}: Defines how many decimal digits are displayed.

    Example: {"DecimalDigits":0} does not display decimal digits

    Note: You can also combine these formatting options, e.g. to display a percentage field with one decimal point: {"PercentField" :true ,"DecimalDigits":1}. These formatting options do not change the actual value in the database, but only influence how the value is displayed in CRM.pad.
  • {"GroupingSeparator":"false"}: Defines that the digit grouping symbol is not displayed.

    Possible values: true (default) / false.

    Example: {"GroupingSeparator":"false"}