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 Example:

getAdditionalInfo()

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

getAllowBlank()

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

getAllowRootSelection()

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

getDays()

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

getDefault()

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

getDefaultFloat()

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

getForceFlatList()

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

getId()

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

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 Example:

getHours()

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

getLabel()

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

getListName()

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

getMandatory()

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

getMinutes()

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

getPlaceholder()

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

getSeconds()

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

getShowAllChildrenInSearch()

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

getShowFullPath()

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

getType()

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

setAdditionalInfo(String)

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

setAllowBlank(Bool)

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

setAllowRootSelection(Bool)

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

setDays(Bool)

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

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).
Example:

setDefaultFloat(Float)

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

setForceFlatList(Bool)

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

setLabel(String)

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

setListName(String)

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

setId(String)

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

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 Example:

setHours(Bool)

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

setMandatory(Bool)

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

setMinutes(Bool)

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

setPlaceholder(String)

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

setSeconds(Bool)

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

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 Example:

setShowFullPath(Bool)

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

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”);
Example: