"converters" schema section
Converters are functions that modify the value of the ViewModel attribute bound to a property of the visual component. Converters provided by Creatio work similarly to Angular filters. Read more: official Angular documentation.
View an example of container usage: Implement the field value conversion on a page.
View the base converters that Creatio provides below.
Base converters
crt.ToBoolean
Convert the values of other types to the BOOLEAN type.
Values
Value | Type | Description |
|---|---|---|
value | ANY | The incoming value. The value whose type is not |
result | BOOLEAN | The outgoing value. The converted |
crt.InvertBooleanValue
Convert the BOOLEAN type value to the opposite BOOLEAN type value. For example, if the incoming value is true, the converter returns false, and vice versa.
Values
Value | Type | Description |
|---|---|---|
value | BOOLEAN | The incoming value. |
result | BOOLEAN | The outgoing value. |
crt.ToEmailLink
Convert an email address to a link by adding the mailTo: prefix.
Values
Value | Type | Description |
|---|---|---|
value | TEXT | The incoming value. The email. |
result | TEXT | The outgoing value. The link to the email. |
crt.ToObjectProp
Retrieve the value of the specified object property.
Values
Value | Type | Description |
|---|---|---|
value | CUSTOM_OBJECT | The incoming value. The name of the object property. |
result | ANY | The outgoing value. The value of the object property. |
Parameters
Parameter | Type | Required | Description |
|---|---|---|---|
prop | TEXT | Yes | The name of the property to retrieve. |
defaultValue | ANY | No | The value to return if the property does not exist or the response is |
crt.ToPhoneLink
Convert the phone number to a link by adding the tel: prefix.
Values
Value | Type | Description |
|---|---|---|
value | TEXT | The incoming value. The phone number. |
result | TEXT | The outgoing value. A link to the phone number. |
crt.IsEqual
Compare the bound ViewModel attribute value to the first parameter passed to the converter. Supports collection comparison and returns a boolean result that can be used in UI expressions and conditional logic within UI elements. Available in Creatio Mobile 8.3.3 and later.
Values
Value | Type | Description |
|---|---|---|
value | ANY | The incoming value. The bound |
result | BOOLEAN | The outgoing value. The equality comparison result. |
Parameters
Value | Type | Required | Description |
|---|---|---|---|
compareValue | ANY | Yes | The value to compare the incoming value against. Supports collections. |