# URL scripted field w/ multiple URL link

**URL:** <https://discuss.elastic.co/t/url-scripted-field-w-multiple-url-link/318910>\
**Category:** Kibana\
**Tags:** painless\
**Created:** [November 14, 2022, 11:54pm UTC](https://discuss.elastic.co/t/url-scripted-field-w-multiple-url-link/318910 "2022-11-14T23:54:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![devon.thomson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/devon.thomson/32/85468_2.png) [@devon.thomson](https://discuss.elastic.co/u/devon.thomson)\
**Post date:** [November 15, 2022, 9:06pm UTC](https://discuss.elastic.co/t/url-scripted-field-w-multiple-url-link/318910/2 "2022-11-15T21:06:32Z")

</div>

I'm not exactly sure if this is what you're looking for, but you could use a for loop to look through all of the values if there is more than one, and concatenate each URL you generate to a string with a newline character, then at the end of the loop return the string.

That would result in one value with multiple URLs, but it wouldn't be an array type. If you wanted to emit an array you could also loop and build an array of URLs. This [discuss post](https://discuss.elastic.co/t/kibana-painless-scripted-fields-loop-on-array-of-objects/132847/5) asked about something similar.

---

_[View the full topic](https://discuss.elastic.co/t/url-scripted-field-w-multiple-url-link/318910)._
