Dashboards & Visualizations

How to change default button background color?

strkwer
Engager

Hi

I like to change the submit button default background color from green and font style, please help me that.

Thanks

Tags (2)
0 Karma
1 Solution

vnravikumar
Champion

Hi

Try with the following CSS and modify it accordingly

<form>
  <label>submitbutton</label>
  <fieldset submitButton="true">
    <input type="text" token="field1">
      <label>field1</label>
    </input>
  </fieldset>
  <row depends="$hide$">
    <html>
      <style>
      #submit .btn-primary {
        font-family: monospace;
        background-color: #4048a5 !important;
      }
      </style>
    </html>
  </row>
</form>

View solution in original post

vnravikumar
Champion

Hi

Try with the following CSS and modify it accordingly

<form>
  <label>submitbutton</label>
  <fieldset submitButton="true">
    <input type="text" token="field1">
      <label>field1</label>
    </input>
  </fieldset>
  <row depends="$hide$">
    <html>
      <style>
      #submit .btn-primary {
        font-family: monospace;
        background-color: #4048a5 !important;
      }
      </style>
    </html>
  </row>
</form>
Get Updates on the Splunk Community!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

April 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...