We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Stamp bullet point point on email script

Sam198
Mega Guru

Hi all,

I have below mail script, it stamps individual apps name when found - i would like to replace the "Name:" to bullet point point  - how should i change this?

 

var appsNames = event.parm2.split(',');
var details = "";
for (var i = 0; i < appsNames.length; i++) {
details += "Name: " + "<span style='color: #4a90e2;letter-spacing: normal;font-size: 16px;'>" + appsNames[i] + "</span><br/><br/>";
}

template.print(details);

 

 

1 ACCEPTED SOLUTION

ben_knight
Kilo Guru

You have multiple choices as the email is HTML/CSS. You can see how to change the styles/add custom bullet types here. An example would be:

 

var appsNames = event.parm2.split(',');

template.print("<ul>");
for (var i = 0; i < appsNames.length; i++) {
  template.print("<li>" + appsNames[i] + "</li>");
}

template.print("</ul>");

 This will print something along the lines of:

  • Name
  • Name
  • Name

 

Now if you are looking to change the bullet to a "-" character then you can find that information here.

View solution in original post

1 REPLY 1

ben_knight
Kilo Guru

You have multiple choices as the email is HTML/CSS. You can see how to change the styles/add custom bullet types here. An example would be:

 

var appsNames = event.parm2.split(',');

template.print("<ul>");
for (var i = 0; i < appsNames.length; i++) {
  template.print("<li>" + appsNames[i] + "</li>");
}

template.print("</ul>");

 This will print something along the lines of:

  • Name
  • Name
  • Name

 

Now if you are looking to change the bullet to a "-" character then you can find that information here.