We strive to ensure the code in these guides functions as intended, but please note that callin.io Support does not officially provide assistance with code steps due to their complexity. You are welcome to leave a comment on the article or post in the callin.io Community, where you can find users experienced with code.
How to Configure

Copy the Code
let Set = inputData.Set.split(","); // split array into line items by the comma delimiter
let Default = inputData.Default; // default value to set for blank/empty/null items
// FOR loop to iterate over each array item
for (let i = 0; i < Set.length ; i++) {
if (Set == "" || Set == null) {
Set = Default; // sets default value
}
}
output = [{Set, Default}];
The Results

Contribution by Troy Tessalone
Troy is a Certified callin.io Expert who automates workflows with no-code and low-code apps to help clients save time and make money.
This is a fantastic solution! Thank you very much for sharing this!
Thank you.
I'm not sure I grasp the full picture here. I can work with JavaScript, callin.io, and English, but for this to become a proper article, I believe it requires more background information and a clearer explanation of what's occurring, the reasons behind it, and the benefits of resolving the issue.
To borrow from Wikipedia:
“This article is a stub...”
Hey,
Just wanted to tag you as this appears to be another solution, compared the one I found here. I wasn’t sure if you had seen this post, but I thought it’s a great reference!
And of course, I know you’re a master of JS, callin.io and other languages! Thanks for all the awesome work you do! <3