- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2017 01:21 PM
Hello Experts,
I have a request regarding email notifications. How can we prevent empty fields of a catalog item from appearing in the email notifications.
Thanks,
SD.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 10:59 AM
if(vs.get(i).getLabel() != '' && vs.get(i) .getDisplayValue() != '' && vs.get(i) .getDisplayValue() != 'false'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 09:07 AM
As far as i know there is no good way to get around with the check box type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 09:15 AM
Ok Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 09:16 AM
For ex:
var a = true;
gs.print(typeof a); >> boolean
something similar: check
var typ = typeof vs.get(i).getDisplayValue() ;
if you want to restrict all boolen fields in script / or you can add your own checks in if below --
if(vs.get(i).getLabel() != '' && typ != 'boolean') {
template.space(4);
template.print(' ' + vs.get(i).getLabel() + " = " + vs.get(i).getDisplayValue() + "\n");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2017 10:59 AM
if(vs.get(i).getLabel() != '' && vs.get(i) .getDisplayValue() != '' && vs.get(i) .getDisplayValue() != 'false'