Description: Pass in a list of values to remove duplicates, empty values, and leading/trailing whitespace from items to output a clean list.
Building a list from arbitrary inputs can result in empty or duplicate values that can cause errors. This logic will output a cleaned list in one step.
Source System: None
Data: Cleaned comma-separated list
Setup Prerequisites
- Setup Source of "Comma-Separated Input List" - This input will be the value that will be cleaned. This input must map to another field that exists on the form. There are three options:
- Integrated Component - Add an integrated component that outputs the list value that you would like to clean. (The logic will receive a value after filling in the integrated component and going to the next page.)
- Logic (Predefined) - Add a predefined logic that outputs the list value that you would like to clean.
- Logic (Literal) - Add a literal logic and manually build a comma-separated list from other variables or hard-coded values.
Setup Instructions
After selecting this predefined logic, the following input will appear at the bottom of the page.
- Comma-Separated Input List - Select the "Comma-Separated Input List" source that was set up in the prerequisite.