Dashboards & Visualizations

Add link in dashboard description

dwahyudi06
Engager

Hi,

 

I want to add external link in my dashboard description.
I saw similar question, but cant find the correct answer https://community.splunk.com/t5/Dashboards-Visualizations/Add-link-to-external-site-in-dashboard-des...

I tried adding <html> tag in the dashboard <description> but I got a warning that <description> is not supposed to have a child tag.

EDIT (so that the accepted answer directly correlates to this question):
I want to add link in dashboard description because I want the link to appear under the title, and above the input. If I just add <html> tag under <panel>, then it will appear after input.

Tags (3)
0 Karma
1 Solution

bowesmana
SplunkTrust
SplunkTrust

@dwahyudi06 

Yes you can do that if you move the inputs into their own row/panel like this example

<form>
  <label>Example Dashboard</label>
  <description></description>
  <fieldset submitButton="false"></fieldset>
  <row>
    <panel>
      <html>
        <h1 style="color:red">A nice big red header</h1>
        <a href="www.yoursite.com">Link to your site</a>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <input type="text" token="field1">
        <label>Enter search tezt</label>
      </input>
      <input type="dropdown" token="choices">
        <label>Choices</label>
        <choice value="c1">Choice 1</choice>
        <choice value="c2">Choice 2</choice>
      </input>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <search>
          <query>
  your search here
          </query>
        </search>
      </table>
    </panel>
  </row>
</form>

Hope this helps

View solution in original post

0 Karma

bowesmana
SplunkTrust
SplunkTrust

@dwahyudi06 

You can't put html inside a title element, but you can create a separate html row/panel that sits above the panel you want to have the description and then you can do what you want in that panel, along the lines of

<row>
  <panel>
    <html>
      <a href="www.yoursite.com">Link to your site</a>
    </html>
  <panel>
</row>
<row>
  <panel>
    <table>
      <search>
        <query>
your search here
        </query>
      </search>
    </table>
  <panel>
</row>

 Hope this helps

0 Karma

dwahyudi06
Engager

Hi @bowesmana Thank you. Yes, the html tag works under <panel>.

But I want the text to appear in the top, under title, and before the input.

Perhaps I should post another question about that?

0 Karma

bowesmana
SplunkTrust
SplunkTrust

@dwahyudi06 

Yes you can do that if you move the inputs into their own row/panel like this example

<form>
  <label>Example Dashboard</label>
  <description></description>
  <fieldset submitButton="false"></fieldset>
  <row>
    <panel>
      <html>
        <h1 style="color:red">A nice big red header</h1>
        <a href="www.yoursite.com">Link to your site</a>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <input type="text" token="field1">
        <label>Enter search tezt</label>
      </input>
      <input type="dropdown" token="choices">
        <label>Choices</label>
        <choice value="c1">Choice 1</choice>
        <choice value="c2">Choice 2</choice>
      </input>
    </panel>
  </row>
  <row>
    <panel>
      <table>
        <search>
          <query>
  your search here
          </query>
        </search>
      </table>
    </panel>
  </row>
</form>

Hope this helps

0 Karma
Get Updates on the Splunk Community!

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...