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
Champion

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!

Security Highlights: September 2022 Newsletter

 September 2022 The Splunk App for Fraud Analytics (SFA) is now Splunk SupportedUse your existing Splunk ...

Platform Highlights | September 2022 Newsletter

 September 2022 What’s New in 9.0 and How to UpgradeGet a walk through of what is new Splunk Enterprise 9.0 ...

Observability Highlights | September 2022 Newsletter

 September 2022 Splunk Observability SuiteAccess to "Classic" SignalFx Interface Will be Removed on Sept 30, ...