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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...