Splunk Search

How do you create a link in a table that directs to a form on the same page?

nick405060
Motivator

Scoured a ton of related questions, but none exactly like this have been posted yet as far as I can tell.

I have an HTML form that successfully directs to a textbox on the same page when the user clicks certain links in the HTML, using:

 <a href="#textbox">some text</a>

I want to do the same thing from a table. The conditional drill down statements I have down pat. It's just the linking that doesn't work:

<link>#textbox</link> 

I tried putting in my_app/?form.#textbox and a few other combinations I saw on https://docs.splunk.com/Documentation/Splunk/7.1.3/Viz/DrilldownLinkToDashboard without any luck.

0 Karma

jeffland
SplunkTrust
SplunkTrust

I doubt you can do this from a table (or any other viz) without using js. The docs you mention are for linking to dashboards, they do not cover linking to anchors inside a dashboard (whether the current one or a target dashboard).
I've explained the general idea here. It will involve enabling drilldown for your table in Simple XML as well as disabling the default action (open in search) and setting the browser url from js. See if you can make it work with that info and feel free to come back with any questions here.

0 Karma

dstile
Explorer

Hi Nick,

For clarification, is the HTML in an HTML dashlet that is included in a Simple XML form or have you used the Convert to HTML menu?

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...