Text: Trim all whitespace
Use this action to trim whitespace throughout an entire string. This includes all spaces, tabs, and new lines.
Spaces in the middle of a phrase are affected.
Example | Result |
---|---|
quick brown fox | quickbrownfox |
Quick brown fox | Quickbrownfox |
QUICK BROWN FOX QUICK BROWN FOX |
QUICKBROWNFOXQUICKBROWNFOX |
Quick! Brown, fox! | Quick!Brown,fox! |
quick-brown-fox | quick-brown-fox| |
How to configure this action
When configuring this action, enter a string or reference a field in the Source Text field configuration. How do I reference a field?
Fields for this action
-
Source Text
- The string to perform the operation on. Enter text or reference a text field.
-
Output field prefix
- To help keep output fields organized, choose an output field prefix to add to the beginning of each output field name as this action may output more than one field.
What will this output?
This action may generate multiple fields. To help keep output fields organized, the prefix above will be added to the beginning of each of the output field names, separated by two dashes. Each field will result as:{{output-field-prefix--output-field}}
.
Output fields for this action
-
Resulting Text
- The result of the operation. The output is a long text type field.
Thanks for your feedback
We update the Help Center daily, so expect changes soon.
Link Copied
Paste this URL anywhere to link straight to the section.