Need calculations, summations, averages, … and you do not want to add Formula fields in Salesforce. Use the SINGLE_FOR_FORMULA
1. Initial Setup #
Before configuring formulas, complete the basic setup:
- Create a Doc Config.

- Create the required Data Sources.


- Open the PDF Butler Editor.
- Add the Data Sources to the configuration.
- Upload your document template.

2. Using the Formula Editor #
Enable Form Fields #
- Go to Doc Config Metadata.
- Enable Form Fields.

Create a Formula Config Type #
- Click Add Config Type.
- Select SINGLE_FOR_FORMULA as the type.
- Set the Format Type to Currency.
- Define the field to be formatted.
- Enter the Merge Field (e.g.,
TotalOppAmount). - Click Open Formula Editor.

Build the Formula #
- In the Formula Editor, drag and drop:
- Data sources
- Fields required for the calculation
- Define your formula logic using the selected fields.

- Click Save to Server.
Validate the Formula #
- Navigate to the related record (e.g., Account or Opportunity).
- Generate the document.
- Verify that the calculated value is displayed correctly.

3. Creating Formulas in Table Rows #
To apply formulas within a table structure:
- Create a Config Type of type Table Row.
- Add a Child Config Type.
- Select SINGLE_FOR_FORMULA as the type.
- Open the Formula Editor.
- Define:
- Fields to be used
- Mathematical calculation logic


- Save the configuration.
- Generate the document to validate the result.












