EMBED.fieldTypeIsFormula
Passing in a data source field from your component, will return if the data source configured is of type Formula.
Parameters
(JSON object) field
Return Value
Boolean
Example
let data = EMBED.getComponent().schema.data;
let input = data.inputValue
if (EMBED.fieldTypeIsFormula(input))
{
console.log(‘field type is Formula’);
}
Related Manifest field
"inputValue": {
"title": "Input Value",
"type": "number",
"$ref": "#/definitions/dataSource"
}