What it does
Pad text on the right to reach a target length.
Syntax
RPAD(text, length [, padding])Square brackets mark optional arguments; omit the brackets. Separate arguments with commas, quote text and use a point for decimals.
Arguments, in order
| Argument | Meaning |
|---|---|
text | Original text. |
length | Target total character count; use a non-negative integer. |
padding | Optional padding text; defaults to a space and repeats as necessary. |
Returns: Text.
Worked examples
Example 1
Formula
RPAD("A", 4, ".")Result
"A..."Example 2
Formula
RPAD("A", 3)Result
"A "Quotes in the result indicate text; \n indicates a newline. Date results use ISO notation. The application may display dates and numbers differently according to the selected field type and interface language.
Behaviour and limits
If the original is already long enough, it is cut to the requested length. Multi-character padding can be clipped.
Use it with your fields
Replace example values with the relevant field API names when needed. A record formula uses names such as amount; a flow expression uses its context, such as $Datensatz.amount. Use your actual API names and a compatible return type. See expression basics and flows.

