Formatting Functions

  • About Formatting Functions

    Discover MergeUp's JavaScript formatting functions, perfect for improving the readability and presentation of data in Salesforce documents. This article provides an overview of these functions, offering links to detailed guides for each, helping you format data effortlessly.

  • c - Currency Formatting

    Learn how to format numeric values as currencies in MergeUp using the 'c' function. This article provides an overview, syntax, parameters, examples, and essential notes for efficiently utilizing this powerful currency formatting tool.

  • d - Date Formatting

    Learn how to use the MergeUp date formatting function to effortlessly format date values from various sources, including Salesforce fields and JavaScript-calculated dates, with optional locale customization for consistent and user-friendly date displays in your templates.

  • dt - Datetime Formatting

    Learn how to utilize MergeUp's versatile `dt` function to easily format date and time values in your template documents. Whether you're working with Salesforce merge fields or JavaScript-calculated dates, this function allows you to customize formatting with locales and time zones, simplifying the process of displaying datetime information.

  • n - Number Formatting

    Learn how to use MergeUp's number formatting function, n, to format numeric values in your document templates, whether they come from Salesforce merge fields or are calculated within JavaScript. This guide provides syntax, parameter details, practical examples, and important notes for accurate and customizable number formatting.

  • p - Percent Formatting

    The percent formatting function allows any sequence of numbers to be formatted according to a language’s standard percentage format.

Building a Template Document
Template Document Overview
Using Merge Fields
Using JavaScript
Using Expressions
Testing a Template
Formatting Functions
About Formatting Functions
c - Currency Formatting
d - Date Formatting
dt - Datetime Formatting
n - Number Formatting
p - Percent Formatting