Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.util.formatVariableToDisplay()#

Syntax#

monster.util.formatVariableToDisplay(string);

Parameters#

Key Description Type Default Required
string Text that will be changed into a formatted text. String true

Return value#

A String representing the formatted input.

Description#

This method allow developers to transform text coming from the back-end (for example Service Plan items...) that hasn't been i18ned to be displayed in a more user-friendly way than just displaying the variable name.

Examples#

Transforms a variable into a more readable string#

monster.util.formatVariableToDisplay('this_is_a_test');
// output: 'This Is A Test'