How do you add hyperlinks as a list in PlanetPress Connect

In an email context, I’d like to create a list of hyperlinks using tracking number information that I have all on one line of some end user data.

The data can contain up to nine individual tracking numbers, each separated in the data by exactly twelve spaces. I’m wondering what the best approach would be since I ultimately want to be able to click an individual tracking number and track each item in my email.

Assuming your selector matches a single anchor element, the loop in your script will keep overwriting its href attribute and content.
I think you want to create a new anchor element for each tracking number. If you have a <ol id=“tracking_numbers”></ol> somewhere you could add a script with selector #tracking_numbers and the following body:
var trackingNumbers = record.fields.TrackingNum.split(/\s+\b/);
for (var i in trackingNumbers) {
results.append(“<li><a href=http://wwwapps.ups.com/ietracking/tracking.cgi?tracknum=
+ trackingNumbers[i] + “>” + trackingNumbers[i] + “</a></li>”);

I hope that help you

Answered by: Sander Van