# How to make a hypertext link in datatable without custom formatter

**URL:** <https://discuss.elastic.co/t/how-to-make-a-hypertext-link-in-datatable-without-custom-formatter/227404>\
**Category:** Kibana\
**Created:** [April 9, 2020, 8:18pm UTC](https://discuss.elastic.co/t/how-to-make-a-hypertext-link-in-datatable-without-custom-formatter/227404 "2020-04-09T20:18:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goishin](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Goishin](https://discuss.elastic.co/u/Goishin)\
**Post date:** [April 9, 2020, 8:18pm UTC](https://discuss.elastic.co/t/how-to-make-a-hypertext-link-in-datatable-without-custom-formatter/227404/1 "2020-04-09T20:18:41Z")

</div>

I currently have a field in my index that uses a custom formatter. I use this to go to the dashboard associated with that field. You start in one dashboard, there's a list of instances, you click on one of the instances, and it takes you to the dashboard for that instance.

However, that field also represents something in my company's internal network. You can take that field and stick it in an url and it goes to the relevant internal page about that instance. I now want to create a link to that internal page. The problem is that I can't use the custom formatting tools to take you there because it is already in use to take you to the kibana dashboard. Not the internal page.

I created a small script in a datatable to format that field into the correct url that takes you to the internal page on my corp network. It just isn't clickable. Is there something I can do in the script, or the datatable controls, that would change that text to a hyperlink? I tried using markdown, but datatable visualizations don't seem to respect that. And I don't know how to make a markdown visualization that can use field data from a document. How do I work this out?

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [April 10, 2020, 12:26pm UTC](https://discuss.elastic.co/t/how-to-make-a-hypertext-link-in-datatable-without-custom-formatter/227404/2 "2020-04-10T12:26:16Z")

</div>

Hey @Goishin,

One idea is to duplicate this field in your index, so that your index pattern can format them in two different ways for your two different use-cases.

If you don't want to re-ingest all of your data, you can fake this using a Scripted Field in your index pattern: [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

---

<div class="post-metadata">

**Author:** ![Goishin](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@Goishin](https://discuss.elastic.co/u/Goishin)\
**Post date:** [April 10, 2020, 4:02pm UTC](https://discuss.elastic.co/t/how-to-make-a-hypertext-link-in-datatable-without-custom-formatter/227404/3 "2020-04-10T16:02:57Z")

</div>

Yeah, that sounds great! Let me do that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 8, 2020, 4:03pm UTC](https://discuss.elastic.co/t/how-to-make-a-hypertext-link-in-datatable-without-custom-formatter/227404/4 "2020-05-08T16:03:01Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
