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.

Labels (1)
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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...