Trim Function

Description:
Trim leading and trailing space characters from the beginning and end of a text.
This is useful if you are concerned the user may mistakenly enter extra spaces into a text or multiline text variable on the questionnaire.
Returns:
Text
Parameter:
Parameter
Data Type
Description
1
Text
The text.
Example:
When using functions inside a field, remember the field brackets:
{Trim(VariableName)}
Expression
Result
Trim( " a b c " )
"a b c"

Related content