multi picklist view in mail template

Posted by refael shira on 18-Aug-2016 02:00

Hi,

I want to present items from multi-picklist in mail template in such a way that every item displayed in new line

someone can help me please?

best regards,

Refael

All Replies

Posted by Shiva Duriseati on 18-Aug-2016 03:37

Hi Shira,

This can be achieved using EVAL[] block:

Idea is to convert comma separated picklist values to array and display each value in new line. Following code will do the trick.

Example:

Include following code in "Source Code" in mail template

#EVAL[

var a="{!MultiSelectPickList#value}".split(",").join("<br />");

a;

]

The above code will convert the values of Multi Picklist view in an arraylist and <br> is used to display each value of array in new line.

Regards,

Shiva

Posted by refael shira on 21-Aug-2016 04:28

Hi Shiva,

The code not helped. I will explain the question better:

I need to present a multi-picklist values in email's body in following form

text...

1. multi-picklist value 1.

2. multi-picklist value 2.

3. multi-picklist value 3.

Regards

Refael

Posted by Shiva Duriseati on 21-Aug-2016 06:19

Hi Shira,

I tested this and its working fine for me.

Please see the attached screenshots and app.xml for your reference.Let me know incase you need assistance.

Regards,

Shiva

[View:/cfs-file/__key/communityserver-discussions-components-files/25/MultpickListApp_5F00_v2.xml:320:240]

This thread is closed