Skip to main content
Utility class to generate a field for dialog to use in CRMScript triggers.

Constructors

EventDataDialogField()

Initializes a new instance of the EventDataDialogField class.

Methods

addListItem(String)

Adds individual items to list.
Returns: CRMScript.Global.Void

getAdditionalInfo()

Returns additional info for the named list.
Returns: CRMScript.Global.String

getAllowBlank()

Returns true if field is allowed to be empty instead of 0.
Returns: CRMScript.Global.Bool

getAllowRootSelection()

Returns true if root selection is allowed.
Returns: CRMScript.Global.Bool

getDays()

Returns true if days is enabled, used with timespan field type.
Returns: CRMScript.Global.Bool

getDefault()

Returns default value set.
Returns: CRMScript.Global.String

getDefaultFloat()

Returns default float value set. Only use for float field type.
Returns: CRMScript.Global.Float

getForceFlatList()

Force flat list if using list name.
Returns: CRMScript.Global.Bool

getId()

Returns identifier for field.
Returns: CRMScript.Global.String

getHideEmptyRootsInSearch()

If true, hide empty roots in search. Default is false. Only applies when showFullPath is true and field type is list.
Returns: CRMScript.Global.Bool

getHours()

Returns true if hours is enabled, used with timespan field type.
Returns: CRMScript.Global.Bool

getLabel()

Returns label for field.
Returns: CRMScript.Global.String

getListName()

Returns listname for field.
Returns: CRMScript.Global.String

getMandatory()

If true, field has to have a valid value.
Returns: CRMScript.Global.Bool

getMinutes()

Returns true if minutes is enabled, used with timespan field type.
Returns: CRMScript.Global.Bool

getPlaceholder()

Returns placeholder text for field.
Returns: CRMScript.Global.String

getSeconds()

Returns true if seconds is enabled, used with timespan field type.
Returns: CRMScript.Global.Bool

getShowAllChildrenInSearch()

Show all children when searching. Default is false. Only applies if showFullPath is true and field type is list.
Returns: CRMScript.Global.Bool

getShowFullPath()

If true, list is preloaded so that the full path is shown.
Returns: CRMScript.Global.Bool

getType()

Returns what type of field.
Returns: CRMScript.Global.String
Supports:
  • label
  • text
  • integer
  • decimal
  • checkbox
  • date
  • datetime
  • time
  • timeSpan
  • list

setAdditionalInfo(String)

Sets additional info for the named list.
Returns: CRMScript.Global.Void

setAllowBlank(Bool)

Set to true if field is allowed to be empty instead of 0.
Returns: CRMScript.Global.Void

setAllowRootSelection(Bool)

Set to true if root selection is allowed.
Returns: CRMScript.Global.Void

setDays(Bool)

Set to true if days is enabled, used with timespan field type.
Returns: CRMScript.Global.Void

setDefault(String)

Sets default value for field.
Returns: CRMScript.Global.Void
Can be used to set Integer, Date, DateTime, Time and String default value formatted as a String. For Float please use setDefaultFloat(Float).

setDefaultFloat(Float)

Sets default float value. Only use for float field type.
Returns: CRMScript.Global.Void

setForceFlatList(Bool)

Force flat list if using list name.
Returns: CRMScript.Global.Void

setLabel(String)

Sets label for field.
Returns: CRMScript.Global.Void

setListName(String)

Set listname for field.
Returns: CRMScript.Global.Void

setId(String)

Set identifier for field.
Returns: CRMScript.Global.Void

setHideEmptyRootsInSearch(Bool)

If true, hide empty roots in search. Default is false. Only applies when showFullPath is true and field type is list.
Returns: CRMScript.Global.Void

setHours(Bool)

Returns true if hours is enabled, used with timespan field type.
Returns: CRMScript.Global.Void

setMandatory(Bool)

If true, field has to have a valid value.
Returns: CRMScript.Global.Void

setMinutes(Bool)

Returns true if minutes is enabled, used with timespan field type.
Returns: CRMScript.Global.Void

setPlaceholder(String)

Sets placeholder text for field.
Returns: CRMScript.Global.Void

setSeconds(Bool)

Returns true if seconds is enabled, used with timespan field type.
Returns: CRMScript.Global.Void

setShowAllChildrenInSearch(Bool)

Show all children when searching. Default is false. Only applies if showFullPath is true and field type is list.
Returns: CRMScript.Global.Void

setShowFullPath(Bool)

If true, list is preloaded so that the full path is shown.
Returns: CRMScript.Global.Void

setType(String)

Sets what type of field.
Returns: CRMScript.Global.Void
Supports:
  • label
  • text
  • integer
  • decimal
  • checkbox
  • date
  • datetime
  • time
  • timeSpan
  • list. Note: the “(No Selection)” option can be added by appending “WithNoSelection” to the list name e.g., field.setListName(“associateWithNoSelection”);