Knowledge Drop

How do I preserve drill behavior when using HTML on a field?

  • 5 April 2021
  • 0 replies
  • 189 views

Userlevel 5
Badge
  • Looker Staff
  • 172 replies

Last Tested: May 13, 2020

 

You can use the {{link}} and {{linked_value}} liquid variable. This will point to the regular drill link of the field.

You can use it with html tags like this:

Option 1

<a href="{{link}}"> {{value}} </a>

Option 2

<p style="font-size: 15px">{{linked_value}}</p>

If you are adding this to a measure, note that it must have a drill_fields parameter or else a LookML error will occur that linked_value is not defined.

 

 

 

This content is subject to limited support.                


0 replies

Be the first to reply!

Reply