Hi there!
I have a field that sometimes returns multiple comma separated values. .i.e.
a,b,c
I would like to create a scripted URL field that maps the values to the products on my website and show, following the above example, 3 different URLs
https://mywebsite.com/#/products/a
https://mywebsite.com/#/products/b
https://mywebsite.com/#/products/c
Would a scripted field have the ability to present multiple URLs? if so, what would be the best way to do that? The logic I have for a one value field is really simple, see below, though not sure how I would accommodate for multiple URLS
if (doc['product.keyword'].value == "N/A") {
return "";
} else { doc['product.keyword'].value
}
TIA!
Azulgrana