Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Property

Description

Notes

Localizable

Name

Name used to identify the field

Label

Label to be rendered in the UI

Can be localized

X

Value

Pre-filled value if mode is manual or js code if mode is auto

The pre-filled value is not localized

isMandatory

If true the field is required

A * is added in the UI

isVisibleCustomer

If false the filed is hidden

Mainly use for mode auto to fetch info using JS evaluation

isVisibleAgent

False if the content is not intended to be shown to agent for privacy reason

isEditable

False if user is not allowed to change default value

custom_regexp

Regular expression for validating input

If input is not validated, an error message is shown when submitting the form. Not used for textarea

customMandatoryErrorMessage

Error shown when a mandatory field is not filled

X

customValidationErrorMessage

Error shown when input is not valid

X

dc_type

Type of field

Supported values are:

  • text (can be generic or specialized)

    • nickname

    • email

    • name

    • surname

    • phone

  • date

  • textarea

  • checkbox

  • radio

  • select

options

Object whose properties are used as possible values

Used only for radio, select and checkbox

X

value

field value

if dc_type is manual then it's considered as default pre-filled value, if auto it's evaluted as a JS function returning a value

name

field name

Not visible in UI

mode

field mode

it descibes how to use the value field. manual the value is used as default value, auto it's evaluated as a JS function

...