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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...