
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 09:46 AM
How to set choice field value to --None-- which is default value in target field using transform map if source field value is empty?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2020 10:38 AM
Hi,
Got the answer --None-- is system default which we cannot use if we want to set the value we have to create new choice and then have to use that value to set.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 10:01 AM
In your transform map you have 'Copy Empty Fields' which would copy all empty fields & set it to empty for all fields.
If you want it to be specific for some fields then you can use transform script as
if(source.u_yourfieldname=='')
{
return '';
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 10:05 AM
hi jaspal,
I checked 'Copy Empty Fields' and also used this code ,
if(source.u_yourfieldname=='')
{
return 'None';
}
but it is creating new choice i want to set it to default --None-- how can i set this value for target?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2020 10:38 AM
Hi,
Got the answer --None-- is system default which we cannot use if we want to set the value we have to create new choice and then have to use that value to set.