Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 06:24 AM
I wrote the following code in the 'Use source script' but it's clearing all the fields to empty when I upload data. Am I missing something?
answer = (function transformEntry(source) {
if (source.getValue() == "Active" || source.getValue() == "Completed" || source.getValue() == "Cancelled" || source.getValue() == "Terminated"){
target.setValue(source.getValue());
} else {
target.clearValue();
}
})(source);